方法一:
网上找到是这样的
showDialog = function (url, title, width, height, id) {
var content = '';
var divContent = '
';
var win = $('
content: content,
width: width,
height: height,
modal: true,
title: title,
onClose: function () {
$(this).dialog('destroy');
}
});
win.dialog('open');
};
修改后是这样的,没有明白的是作者为什么把ID作为单独的参数传递,父窗口需要吗? $('
showDialog = function (url, title, width, height, id) {
var content = '';
var divContent = '
var win = $(divContent).dialog({
content: content,
width: width,
height: height,
modal: true,
title: title,
onClo