DWZ框架提示窗口调用

提示窗口
确认提示框
alertMsg.confirm("您修改的资料未保存,请选择保存或取消!", {
 okCall: function(){
  $.post(url, {accountId: accountId}, DWZ.ajaxDone, "json");
 },
 cancelCall : function() {}
});
成功提示框,alertMsg.correct('您的数据提交成功!')
错误提示框,alertMsg.error('您提交的数据有误,请检查后重新提交!', [options])
警告提示框,alertMsg.warn('您提交的数据有误,请检查后重新提交!', [options])
信息提示框,alertMsg.info('您提交的数据有误,请检查后重新提交!', [options])
options对象属性:
okName:确定按钮名称;
okCal:确认按钮回调;
cancelName:取消按钮名称;
cancelCall:取消按钮回调;
keyCode:键盘按键定义,参考DWZ.keyCode;

原文地址:https://www.cnblogs.com/originate918/p/6369555.html