1、下载、安装 Aptana Studio 3.0.3;
2、创建新的工程HelloTouch;
3、把sencha touch2中的文件拖到新的工程目录下;
要用到的文档包括:css-debug、touch/example、sencha-touch-all-debug.js。
4、创建.html和.js
index.html
1 3 4 5 6 7 8 9 10New Web Project 11 12 13 14 15
audio.js
1 /** 2 * @author huanghuang 3 */ 4 Ext.application({ 5 launch:function(){ 6 Ext.create("Ext.Container",{ 7 fullscreen:true, 8 layout:{ 9 type:'vbox', 10 pack:'centered', 11 align:'stretch' 12 }, 13 items:[ 14 { 15 xtype:'toolbar', 16 docked:'top', 17 title:'Ext.Audio' 18 }, 19 { 20 xtype:'audio', 21 // docked:'top', 22 url:'touch/examples/audio/crash.mp3' 23 } 24 ] 25 }); 26 } 27 });
5、在chrome运行效果