内の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を確認したいとしましょう。どうすればそれを入手できますか? ありがとう!