我希望它在 if 条件下检查它。我该如何使用它?
function notification_dialog_box(title,html,icon)
{
var text = '<p><span class="'+icon+'" style="float:left; margin:0 7px 50px 0;"></span>'+ html +'</p>';
var $myDialog = $('<div id="dialog-message"></div>').html(text).dialog({
modal: true, zIndex: 10000, autoOpen:true,width: 'auto', modal: true, resizable: false,title: title,
buttons: {
"OK":function(){$(this).dialog("close"); return true;},
"Cancel":function() {$(this).dialog("close");return false;}
}
});
}
if(notification_dialog_box('Out of designer\'s', 'All Designer\'s are assigned in this project', 'ui-icon ui-icon-info' ))
{
code....
}