IBM 的 Dojo 和 iWidgets:
所以我的 iWidget 代码如下:
onEdit : function() {
dojo.require(["dijit/Dialog", "dojo/dom"], function(Dialog, dom){
var node = dom.byId("makeADialog");
var myDialog = new Dialog({ title:"From Source Node" }, node);
myDialog.show();
});
},
当我运行这个 - chrome浏览器控制台显示:
com.ibm.mm.iwidget.widget.IWidgetWrapperExtendedImpl IWidgetWrapper._handleEventInternal: widget: testWidget, eventName: onedit, HandleEventException: TypeError: Object [object Array] has no method 'split'
怎么了?