var o={};
o.name="hhhh";
o.click=function(){
console.log(this.name);
function inner(){
console.log(this.name+"iiii");
}
inner();
}
o.click();
显示:
hhhh
iiii
var o={};
o.name="hhhh";
o.click=function(){
console.log(this.name);
function inner(){
console.log(this.name+"iiii");
}
inner();
}
o.click();
显示:
hhhh
iiii