this替换

1 function baseObject(){
2     this.shit = function(){ alert('fuck'); }
3 }
4 function abc(){
5     baseObject.call(this);
6 }
7 var o = new abc();
8 console.log(o.shit)
原文地址:https://www.cnblogs.com/qzsonline/p/2514998.html