摘要: 1 Function.prototype.method = function (name, func) { 2 this.prototype[name] = func; 3 }; 4 Function.method("createInstance", function () { 5 ... 阅读全文
posted @ 2016-01-11 20:49 无状态的程序猿 阅读(116) 评论(0) 推荐(0)
摘要: 1 var s = 0, 2 b = 0; 3 function A(s) { 4 A = function () { 5 console.log(s + b++); 6 }; 7 console.log(A); 8 console.log(... 阅读全文
posted @ 2016-01-11 20:46 无状态的程序猿 阅读(414) 评论(0) 推荐(0)
摘要: 我是一名小小的web前端攻城狮,在这里我将记录下我的学习历程,希望前端大牛们前来指点一二! 阅读全文
posted @ 2015-11-07 16:07 无状态的程序猿 阅读(85) 评论(0) 推荐(0)