我在这样的数组中设置一个元素:
dialogs[id] = $.modal({
title: "Admin",
closeButton: true,
content: content,
width: false,
resizeOnLoad: true,
buttons: {
'Close': function (win) {
win.closeModal();
}
}
}).find('form') // Attach logic on forms
.submit(formSubmitHandler)
.end();
后来我检查是否存在这样的:
if (!dialogs[id]) {
loadAndShowDialog(id, link, url);
}
如何id
从对话框数组中删除记录?有类似的东西dialogs[id].Remove()
吗?