07 2014 档案

跳转网页
摘要:1234567 SkyOne 阅读全文

posted @ 2014-07-25 17:40 dhj 阅读(120) 评论(0) 推荐(0) 编辑

关于构造函数什么值传递给他的实例,只有this和prototype
摘要:var a= function (){var bb = 12; this.aa ="xxx"}; a.aa="www"; a.prototype.cc="eee";var b = new a; for (var i in b){console.log(b[i]);}console.log (b)co... 阅读全文

posted @ 2014-07-20 23:15 dhj 阅读(262) 评论(0) 推荐(0) 编辑

JavaScript 的类型
摘要:var a ="111"; console.log(a.constructor);//function String() { [native code]} var b= String("111"); console.log(b.constructor);//同a functio... 阅读全文

posted @ 2014-07-16 13:26 dhj 阅读(161) 评论(0) 推荐(0) 编辑

js中的constructor 和prototype
摘要:参考http://www.cnblogs.com/yupeng/archive/2012/04/06/2435386.htmlfunction a(c){ this.b = c; this.d =function(){ alert(this.b); }}var obj... 阅读全文

posted @ 2014-07-11 18:36 dhj 阅读(802) 评论(0) 推荐(1) 编辑

关于对象字面量花括号{} key的类型
摘要:原来对{}方式建立的实例化后的对象的key,理解不清,只知道,数组加不加“”,反正都是字符,现在要理解下,到底怎么回事?返回结果是var a={};a[1]="a";a["1"]=1;a["'1'"]="aa";a["b"]=2;a[{1:2}]=3;console.log(a);for(var i... 阅读全文

posted @ 2014-07-01 20:11 dhj 阅读(882) 评论(1) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示