同这一例子一样:
var teste = {name: marcos };
$(teste).each(function(){
var name = this.name; // i don t want to do that.
// i want to have access to this inside this function (sayName)
var sayName = function(){
alert(name); // there is something like "super" in java? or similar way to do?
}
sayName();
});
如何做到这一点?