1、obj.fun() this->obj
2、 fun() 或(function(){ … })() this->window
3、new fun() this->新对象
4、Student.prototype.intr=function(){ … this.sname …}
this-> 将来调用intr()的 . 前的子对象
this指向
最新推荐文章于 2023-05-04 10:13:41 发布
1、obj.fun() this->obj
2、 fun() 或(function(){ … })() this->window
3、new fun() this->新对象
4、Student.prototype.intr=function(){ … this.sname …}
this-> 将来调用intr()的 . 前的子对象