function haha(){ this.one=function(){
console.log(this)
} this.two=function(){
this.one(); console.log(this)
}
}var hehe = new haha()
hehe.two()通过对象的属性调用,this不是应该指向这个对象的吗(hehe对象)?为什么这里会输出两个haha对象呢.
添加回答
举报
0/150
提交
取消