摘要: 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... 阅读全文