摘要:
var ss = { aa:"a", bb:this.a, cc:function(){ console.log(this.aa); }}ss.cc();//aconsole.log(ss.bb);//undefine//这个为什么,有时间在研究 阅读全文
摘要:
转载:http://www.cnblogs.com/xjser/p/4962821.html 阅读全文
摘要:
var aa ={ name:"boy", age:12, like: function(){ console.log(this.name); } } //aa.like();//这样子调用永远不会有this报错的问题。 function box(){ return function(){ aa.like(); } } //box()();//这样子也不会... 阅读全文