內部的jQuery函數內的對象參數值我有這樣的:獲取對象的方法
function test1()
{
this.count = 0;
this.active = 0;
this.enable = function() {this.active = 1;}
this.disable = function() {this.active = 0;}
this.dodo = function()
{
$("html").mousemove(function(event) {
// I want to get here the "active" param value;
});
}
this.enable();
this.dodo();
}
instance = new test1();
instance.disable();
比方說,我要檢查的TEST1類的活動PARAM在評論的地方。我怎樣才能在那裏? 謝謝!