提示窗口
確認提示框
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;