NewsView.js里有这一段代码
[code="java"]
NewsView.prototype.gridLand = function() {
var sm = new Ext.grid.CheckboxSelectionModel();
var cm = new Ext.grid.ColumnModel({.........
};
[/code]
[code="java"]
Ext.getCmp('NewsView').remove('NewsGrid');
var nv=new NewsView();
var grid=nv.gridLand();
[/code]
在这里调用的时候跑到nv.gridLand时console报错
[color=red][b]Uncaught TypeError: Object [object Object] has no method 'gridLand'[/b][/color]
不解,不解,明明定义了 快来为我解开迷雾吧