就是使用
var editor = new Ext.ux.grid.RowEditor();
但是每次执行到这里 firebug 就报错说 “ Ext.ux.grid is undefined ”
是什么文件没有引用么?
这个问题纠结好久了
我引用了 ExtJS/examples/ux/RowEditor.js 啊,怎么还会有这种问题??求各位大大解答
var editor = new Ext.ux.grid.RowEditor();
但是每次执行到这里 firebug 就报错说 “ Ext.ux.grid is undefined ”
是什么文件没有引用么?
这个问题纠结好久了
我引用了 ExtJS/examples/ux/RowEditor.js 啊,怎么还会有这种问题??求各位大大解答
貌似不是啊,那个文件是 EXT 的例子啊。
第一句话就是
Ext.ns('Ext.ux.grid');既然是“ Ext.ux.grid is undefined ”明显说明你根本没有加载到这个文件.注意顺序
另外,我加上了这句话 Ext.ns('Ext.ux.grid');
就又有另外一个错误了:“Ext.ux.grid.RowEditor is not a constructor”。。
不是说了么
你自己看/examples/ux/RowEditor.js中
检查 路径和顺序