欢迎访问悦橙教程(wld5.com),关注java教程。悦橙教程  java问答|  每日更新
页面导航 : > > > 文章正文

Extjs4---Uncaught TypeError: Cannot call method 'substring' of undefined,

来源: javaer 分享于  点击 16065 次 点评:237

Extjs4---Uncaught TypeError: Cannot call method 'substring' of undefined,


我遇到这个错误是在做MVC时遇到的,因为alias属性忘了加“widget”


Ext.define('HT.view.Center',{
		extend:'Ext.tab.Panel',
		//layout:'fit',
		//注意 加上widget.
		alias:'widget.center',
		activeTab:0,
		width:500,
		height:400,
		region:'center',
		items:[
		       {
		    	   title:'主页',
		    	   html:'这里是主页'
		       },{
		    	   title:'tab2',
		    	   hitml:'第二个页面'
		       }
		],
		initComponent:function(){
			this.callParent(arguments);
		}
	}
);


相关文章

    暂无相关文章

用户点评