【发布时间】:2015-02-19 06:44:13
【问题描述】:
这是我的工作代码:
var dialog = $( "#dialog" ).dialog({
autoOpen: false,
modal: true,
buttons: {
Add: function() {
addTab();
$( this ).dialog( "close" );
},
Cancel: function() {
$( this ).dialog( "close" );
}
},
close: function() {
form[ 0 ].reset();
}
});
当我单击添加选项卡时,它将显示一个 jQuery 对话框,并且在页面刷新时我看不到对话框。
我想在页面刷新时保留 jQuery 对话框。
这种情况该怎么办?
【问题讨论】:
-
@Kartikeya:非常感谢。您能否解释一下方法并发布答案,以便我接受。 :)
标签: jquery jquery-ui reload jquery-dialog