widows打开新窗口
window.open('../ViewsHTML/VAT_invoice.html', 'newwindow',
'height=600, width=835, top=200, left=500, toolbar=no,
menubar=no, scrollbars=no, resizable=no, location=no,
status=no');
jQuery打开窗口
var dlg = $("#importDialog").load('../ViewsHTML/VAT_invoice.html').dialog({
title: "",
width: 835,
height: 600,
closed: true,
cancel: true,
modal: true,
//href: url,
left: 500,
top: 200,
});
我在js中有以下代码,形成窗体,第一次点击按钮弹出窗体,可以,第二次就报错。
var dlg = $("#importDialog").load('../ViewsHTML/Detail_order.html').dialog({
title: "订单明细",
width: 830,
height: 850,
closed: true,
cancel: true,
modal: true,
left: 500,
top: 50,
});
后来去网上找,发现是因为我dialog那个界面中又一次引用了jQuery的文件,导致错误。特此记录。。。