闭包问题,求解
jquery吧
全部回复
仅看楼主
level 12
jin123456bat 楼主
var car = function(){
this.setId = function(id){
this.extern_id = id
}
this.init = function(){
$(*#myCar*).bind(*click*,function(){
//问题来了,怎么在这里访问到上面的extern_id?
});
}
}
2014年09月12日 17点09分 1
1