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对象呢.
慕尼黑5688855
精慕HU
随时随地看视频慕课网APP
相关分类