博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
sencha touch 2--audio
阅读量:6906 次
发布时间:2019-06-27

本文共 1042 字,大约阅读时间需要 3 分钟。

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 10 New 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运行效果

转载地址:http://jigdl.baihongyu.com/

你可能感兴趣的文章
【AIX】 snap 命令
查看>>
使用nginx lua实现网站统计中的数据收集
查看>>
xampp配置服务器(Windows与Linux)
查看>>
【Mysql 学习】LIMIT 的使用
查看>>
【软考教程】计算机系统知识
查看>>
Hello Jekyll!
查看>>
Anciroid的IPC机制-Binder概述
查看>>
Objective-C精选字符串处理方法
查看>>
[华为机试练习题]29.Arrange an Array to Form a Smallest Digit
查看>>
iOS调试奇巧淫技(一)
查看>>
如何用 React Native 创建一个iOS APP?
查看>>
gmond's XML introduction
查看>>
2015年最新手机号码正则表达式
查看>>
Android自定义Dialog简单实例
查看>>
android在xml文件中定义drawable数组、id数组等
查看>>
android 画虚线、实线,画圆角矩形,一半圆角
查看>>
Apache Storm 官方文档 —— 分布式 RPC
查看>>
如何杀死僵尸进程?
查看>>
使用wireshark学习网络协议
查看>>
2019-03-06面试题总结
查看>>