function Str(x,y){
this.x = x;
this.y = y;
this.sing = function(){
console.log(this);
}
}
let bb = new Str();
bb.sing();
通过Str()这个构造函数生成了一个bb对象,但是这个this为什么还是指向的Str,不是应该指向bb吗?
不知道你这个问题是否已经解决, 如果还没有解决的话: