随笔分类 - 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...
阅读全文
摘要:最近在学习Sencha Touch2,简单分享一下自己的学习心得。第一个应用 Hello World!Ext.application({ name: 'HelloWorld', launch: function() { Ext.create("Ext.tab.Panel", { fullscreen: true, items: [ { title: 'Home', iconCls: 'home', ...
阅读全文
浙公网安备 33010602011771号