1、已经引用
var MsgDialog = require("$UI/system/components/justep/messageDialog/messageDialog");
2、在按钮的click事件里写了一段如下的代码:
alert('按钮已经执行click事件!');
if (!this.msg){
this.msg = new MsgDialog({parentNode : this.getElementByXid("buttons")});
}
this.msg.show({
type : 'OK',
title : '提醒',
message : 'The mobile is empty!',
width : ''
});