一、Hello World
1 用sencha-touch-debug.js。
2 将src包放在webRoot下或参考ajax(6.9)项目。
二、Sencha Touch的布局类似Extjs中的布局,常用的有:BoxLayout、HBoxLayout、VBoxLayout、FitLayout、CardLayout。
3 Ext.MessageBox.YESNO = [{text: '是', itemId: 'yes', ui: 'action'}, {text: '否', itemId: 'no'}];//将messagebox里面的按钮文字修改为中文
4 Ext.Viewport.getWindowHeight(); 获取设备的尺寸