最近在学习Sencha Touch2,简单分享一下自己的学习心得。
第一个应用 Hello World!
Ext.application({ name: 'HelloWorld', launch: function() { Ext.create("Ext.tab.Panel", { fullscreen: true, items: [ { title: 'Home', iconCls: 'home', html: 'Hello World!' } ] }); } });
运行界面如下:
页面运行时自动调用launch方法,launch创建一个Ext.tab.Panel,fullScreen全屏显示。