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);
		}
	}
);


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章