我收到一个错误:
脚本解释器错误,line=3,col=28:[ReferenceError] 'dojo' not found
1: viewScope.ppChoice=context.getSubmittedValue();
2: dBar.info("I am here");
3: var fileUploadPanel = dojo.byId("#{id:fileUploadPanel}");
4: var fileUpload1 = dojo.byId("#{id:fileUpload1}");
5: var butImport = dojo.byId("#{id:butImport}");
6: dojo.style(fileUploadPanel, "display", "block");
7: dojo.window.scrollIntoView(butImport);
8: fileUpload1.focus();
在扩展库弹出菜单的 onItemClick 事件上。同样的代码在正常的按钮事件中运行得很好。我现在确实打算不使用弹出菜单,但我仍然很好奇为什么我会从 onItemClick 事件中得到这个错误。有任何想法吗?