|
wex532 justep.Util.hint 提示框内容如何添加onclick事件?
我使用如下方式添加guessClick事件,点击不起作用
代码如下:
Model.prototype.modelLoad = function(event) {
// 获取登录用户id
testId = getCookie("testId");
debugger;
//TODO 测试hint 点击打开新页面
var intervalID = window.setInterval(function() {
debugger;
justep.Util.hint("<div bind-click='guessClick'>点击我,可以打开记录页面</div>",
{type: 'danger',delay:10000});
}, 10000);
};
Model.prototype.guessClick = function(event){
var windowDialog = this.comp("guessDialog");
var src = require.toUrl("./biz/guessRecord.w");
windowDialog.open({
"src" : src,
"data" : {
"testId" : testId
}
});
};
|
|