var n = 1;
function foo() {
return n
}
function Bar() {
this.n = 2;
this.b = foo;
var obj = new Bar();
obj.b(); // 1 or 2 ?
Qyouu
相关分类