我有一个问题,即向注射文字提供可观阵列。
Global.html
var settings = new Array();
settings["accountID"] = safari.extension.settings.getItem("accountID");
settings["accountName"] = safari.extension.settings.getItem("accountName");
settings["accountEmail"] = safari.extension.settings.getItem("accountEmail");
safari.application.activeBrowserWindow.activeTab.page.dispatchMessage("settingsArray", settings);
switch (msgEvent.name) {
case "settingsArray":
var settings = new Array();
settings = msgEvent.message;
console.log("accountID: " + settings["accountID"]);
break;
www.un.org/Depts/DGACM/index_spanish.htm 当我用“热”阵列做时,它会做精细!
但是,在提供联系阵列时,我总是在打电话时获得“un defined>。
是否有任何人认为什么错误?