2013-02-25 72 views
0

我在Sencha Touch的JavaScript代碼的這一部分有一些問題,我不知道如何解決它。網絡應用sencha觸摸錯誤

new Ext.application({ 
    name: 'TouchStart', 
    launch: function() {  
    this.viewport = new Ext.Panel({ 
     fullscreen: true, 
     bodyPadding: 5, 
     dockedItems: [   { 
     dock : 'top', 
     xtype: 'toolbar', 
     title: 'Touch Start' 
     }, { 
     dock : 'top', 
     xtype: 'toolbar', 
     items: [{ 
      text: 'Hello Button' 
     }] 
     }],  
     html: 'Hello Panel' 
    }); 
    } 
}); 

控制檯顯示:

This.viewport = new Ext.Panel({ 
> Uncaught TypeError: undefined is not a function 

回答

0

薩拉姆 你必須改變你的代碼Ext.PanelExt.create('Ext.Panel',...........