摘要:
1.安装配置gitgit安装完之后需要设置本机的user.name和user.emailgit config --global user.name "sunwenfei"git config --global user.email "wenfeisun@sohu-inc.com"注意git conf... 阅读全文
posted @ 2015-08-02 15:54
iamswf
阅读(207)
评论(0)
推荐(0)
摘要:
我们首先定义一个构造函数Person,然后定义一个对象p,JS代码如下:function Person(name) { this.name = name; }var p = new Person("Ben");console.log(p.name);上面new过程中,p对象的__prot... 阅读全文
posted @ 2015-08-02 15:51
iamswf
阅读(572)
评论(0)
推荐(0)
摘要:
在JS中定义一个构造函数,然后用new操作符构造对象obj,JS代码如下。function Base(){ this.name = "swf"; this.age =20;}var obj = new Base();console.log(obj.name);console.log(ob... 阅读全文
posted @ 2015-08-02 13:46
iamswf
阅读(263)
评论(0)
推荐(1)

浙公网安备 33010602011771号