摘要:
1 function classA() { 2 console.log(this); 3 var that = this == window ? {} : this; 4 that.name = "classA"; 5 return that; 6 } 7 8 new classA(); // 是一个classA的实例 9 classA(); // 输出了wi... 阅读全文
posted @ 2016-10-12 21:32
wangjun2016
阅读(7735)
评论(0)
推荐(0)