var label = 2
var obj={
label:1
a:function(){
console.log(this.label);
}
obj.a(); //1
var b = obj.a
b(); //2
为什么b会丢失原对象this,后面的原理是什么?
相关分类