标签:取消 idt html this else als bsp rtm alert
$(function(){ $(‘#AlertMsg‘).dialog({ autoOpen: false, width: 300, modal: true, position: ‘center‘, buttons: { "确定": function() { $(this).dialog("close"); } } }); $(‘#ConfirmMsg‘).dialog({ autoOpen: false, width: 300, modal: true, position: ‘center‘, buttons: { "确定": function() { mDialogCallback(true); $(this).dialog(‘close‘); }, "取消": function() { mDialogCallback(false); $(this).dialog(‘close‘); } } }); }); var mDialogCallback; function ShowMsg(msg, callback) { if (callback == null) { $(‘#AlertMsgBody‘).html(msg); $(‘#AlertMsg‘).dialog(‘open‘); } else { mDialogCallback = callback; $(‘#ConfirmMsgBody‘).html(msg); $(‘#ConfirmMsg‘).dialog(‘open‘); } }
标签:取消 idt html this else als bsp rtm alert
原文地址:http://www.cnblogs.com/tiancai/p/6039226.html