Learning Puppet — Resources and the RALWelcome to Learning Puppet! This series covers the basics of writing Puppet codeBeginLog into the Learning Pupp...
分类:
其他好文 时间:
2014-11-06 16:41:41
阅读次数:
156
JavaScript中的每个函数都是一个对象。 因为函数都是对象,它们有自己的属性和方法。我们可以把它们看作数据(data)。函数和方法的区别? 函数立足于它们自己(例如:alert()), 而方法是函数内部一个对象的属性(dictionary),我们通过对象来调用方法。 每个JavaS...
分类:
移动开发 时间:
2014-11-05 12:40:34
阅读次数:
166
一、常见继承方式我们日常开发中常见的继承方式主要有: 1、默认模式:Child.prototype = new Parent();2、借用构造函数:function Child(a, b, c, d) { Parent.apply(this, arguments);}3、借用和设置原型:functi...
分类:
其他好文 时间:
2014-11-04 23:59:25
阅读次数:
435
实现JavaScript继承的最简单的方式是call方法(或者apply方法)及原型链方法,但这两种方法都有缺陷,而其混合体就是很好的继承实现方式。下面举例说明:functionAnimal(age){this.age=age;}Animal.prototype.sayAge=function()....
分类:
编程语言 时间:
2014-11-04 16:31:23
阅读次数:
174
1、创建模块目录结构注意:在未指定modulepath搜索路径的情况下,会有默认搜索路径的,可通过以下方式查看到[root@puppetmaster~]#puppetmaster--genconfig>/etc/puppet/puppet.conf.out
[root@puppetmaster~]#cat/etc/puppet/puppet.conf.out|grepmodulepath
modulepath=/e..
分类:
其他好文 时间:
2014-11-04 15:20:53
阅读次数:
248
DELIMITER $$USE `u2_test10`$$DROP PROCEDURE IF EXISTS `Pro_apply`$$CREATE DEFINER=`root`@`%` PROCEDURE `Pro_apply`(IN aid INT,IN uid INT,IN reas CHAR(...
分类:
数据库 时间:
2014-11-03 16:10:11
阅读次数:
208
1. Color State List Resource A ColorStateList is an object you can define in XML that you can apply as a color, but will actually change colors, depe....
分类:
移动开发 时间:
2014-11-03 14:33:19
阅读次数:
127
Js apply方法具体解释我在一開始看到javascript的函数apply和call时,很的模糊,看也看不懂,近期在网上看到一些文章对apply方法和call的一些演示样例,总算是看的有点眉目了,在这里我做例如以下笔记,希望和大家分享.. 如有什么不正确的或者说法不明白的地方希望读者多多提一些意...
分类:
移动开发 时间:
2014-11-03 14:32:16
阅读次数:
148
脚本待处理事务1,替换指定行数据2,获取$1 :字段分割【Tips Notes,byRui】从光盘等安装媒介中isntallp -l -d /opt/ruiyhe or /dev/cd0 搜索所有的packages,以:坐字段分割符,使用shell截取$2字段,捕获到的这个字段就是光盘中可以使用的软...
分类:
其他好文 时间:
2014-11-02 19:31:55
阅读次数:
163
<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"xml:lang="en"><head> <metahttp-equiv="Content-Type"content="text/html;charset=UTF..
分类:
移动开发 时间:
2014-11-02 16:42:07
阅读次数:
171