var name = "小明",
person = { name : "小红", getName : function(){
return function(){
return this.name;
};
}
};console.log(person.getName()()); // 小明为什么最后打印出来的“小明”而不是“小红”?看不太懂person.getName()()这句后面两个括号的意思。//新手勿喷,谢谢
添加回答
举报
0/150
提交
取消