随笔分类 -  Sencha Touch2

摘要:Sencha Touch 2 采用跟EXT4.x一样的类系统(The Class System),类系统提供了继承,依赖加载,mixin,配置选项等,这使JavaScript很好地实现面向对象的思想。1、定义类Ext.define('Car', { alias: ['widget.car'], config: { speed: null }, constructor: function(config) { this.initConfig(config); }, run: function() { alert(thi... 阅读全文
posted @ 2012-07-04 22:35 LegendWind 阅读(2461) 评论(0) 推荐(2)
摘要:最近在学习Sencha Touch2,简单分享一下自己的学习心得。第一个应用 Hello World!Ext.application({ name: 'HelloWorld', launch: function() { Ext.create("Ext.tab.Panel", { fullscreen: true, items: [ { title: 'Home', iconCls: 'home', ... 阅读全文
posted @ 2012-07-01 15:42 LegendWind 阅读(1101) 评论(1) 推荐(0)