日期:2014-05-16 浏览次数:20695 次
var strUrl = "/BaseInfoMgr/Organization/AddOrganization?" + Math.random();
$("#dialog-modal").load(strUrl);
ShowDialog();
function ShowDialog() {
$("#dialog").dialog("destroy");
$("#dialog-modal").dialog({
width: 700,
height: 500,
modal: true,
close: function () {
window.close();
}
});
$("#dialog-modal").dialog("option", "buttons", {
});
}
$("#dialog-modal").load(strUrl,function(){ShowDialog();});//放到回调里面来
//ShowDialog();
<input type="button" id="btnAddB" value="Close" />
<script> $("#btnAddB").click(function () {
$("#dialog-modal").dialog("close")
})
</script>