我正在尝试使用jquery对话框复制javascript的“确认”框。这是我的代码,functioncustomConfirm(customMessage){$("#popUp").html(customMessage);$("#popUp").dialog({resizable:false,height:240,modal:true,buttons:{"OK":function(){$(this).dialog("close");alert(true);returntrue;},Cancel:function(){$(this).dialog("close");alert(false