2013-02-25 3 views
0

Sencha Touch에서이 부분의 JavaScript 코드에 몇 가지 문제가 있습니다. 해결 방법을 모르겠습니다.Web app sencha touch 오류

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',...........