|
本帖最后由 咫尺天涯HP 于 2016-5-11 09:43 编辑
Model.prototype.show = function(event) {
Message.message("aler", "通过代码动态创建MessageDialog");
if (!this.msg)
this.msg = new MsgDialog({
parentNode : this.getElementByXid("buttons")
});
this.msg.on('onClose', function(event) {
console.log("22222222222222222");
this.comp('output').set({
'value' : '点击:' + event.button + ',input:' + event.input
});
}, this);
this.msg.show({
type : this.type,
title : this.title,
message : this.text,
inputValue : this.inputValue,
width : this.width
});
};
估计是忘了加{} 导致累加打印输出,在messageDialog的DEMO
|
|