var TestClass;if (TestClass == undefined) { TestClass = function(){
}
}TestClass.prototype.init = function (options) {
$(".alert_click").click(function(){ this.popup("test"); //这样的代码会提示popup未定义。如果想在此处调用popup应该怎么做?
});
};TestClass.prototype.popup = function (value) { alert(value);
}
$(function(){ var testClass = new TestClass();
testClass.init();
}
子衿沉夜
吃鸡游戏
www说
随时随地看视频慕课网APP
相关分类