|
发表于 2017-2-16 11:58:41
|
显示全部楼层
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) {
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
});
};
你再this.msg.on('onClose',这里写跳转 他就是关闭完再跳了 |
|