摘要: 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 阅读(2455) 评论(0) 推荐(2) 编辑