
js
txx3258
这个作者很懒,什么都没留下…
展开
-
js bind()函数 使用闭包保存执行上下文
转载:http://www.codesky.net/article/201208/170849.html window.name = "the window object" function scopeTest() { return this.name; } // calling the function in global scope: scopeTest() // -转载 2013-08-22 18:19:52 · 617 阅读 · 0 评论 -
随记
var counter=(function(){ var i=0; return { get:function(){ return i; },set:function(val){ i=val; },increment:function(){ i++; } }()) conuer.get(); counter.set(3);转载 2013-11-03 10:50:15 · 546 阅读 · 0 评论 -
js必包题
转载 2015-11-27 09:01:41 · 411 阅读 · 0 评论