我的项目他们为对话框实现了dojo。我想在dojo对话框关闭时刷新页面。我也收到'multipleDefine'错误。你能给我一个解决这个问题的想法吗?我在网上发现很少的解决方案。但是他们都没有帮助。
所以,我的代码是
function loadDojoAndOpenInlineEditingDialog(/*String*/ actionUrl, /*String?*/ title, /*Object?*/dialogBox) {
var dojo_url = "http://ajax.googleapis.com/ajax/libs/dojo/1.7/dojo/dojo.js";
var idx = dojo_url.lastIndexOf("dojo.js");
idx = (idx > 0) ? idx : dojo_url.length;
var dojo_baseurl = dojo_url.substring(0, idx);
djConfig = {
"baseUrl": dojo_baseurl,
"locale": "en",
"isDebug": true,
"debugAtAllCosts": true,
"parseOnLoad": true,
"afterOnLoad": true
};
djConfig.locale = djConfig.locale.replace(/_/g, "-").replace(/iw/, "he").toLowerCase();
ns_Z7_41DIGA41L0HLC0ALQNPSOIAS51_loadScriptXhr(dojo_url,
function () {
readyState++;
ns_Z7_41DIGA41L0HLC0ALQNPSOIAS51_openInlineEditDialogWhenReady(actionUrl, title, dialogBox);
},
function () {
console.error("Error loading dojo.");
},
djConfig
);
}
在这里,我需要两个帮助,一个是如何避免“ multipleDefine”错误,另一个是如何在关闭对话框时重新加载页面。