更新记录
1.0.1(2024-06-11) 下载此版本
-
主要是实现了一些触发音效!
function soundEffects() { const innerAudioContext = uni.createInnerAudioContext(); innerAudioContext.autoplay = true; innerAudioContext.src = '/static/audio/xm2749.wav'; // 触发音效的src innerAudioContext.onError((res) => {}); setTimeout(() => { innerAudioContext.destroy() }, 2000) } module.exports = { soundEffects, }
1.0.0(2024-06-11) 下载此版本
-
主要是实现了一些触发音效!
function soundEffects() { const innerAudioContext = uni.createInnerAudioContext(); innerAudioContext.autoplay = true; innerAudioContext.src = '/static/audio/xm2749.wav'; // 触发音效的src innerAudioContext.onError((res) => {}); setTimeout(() => { innerAudioContext.destroy() }, 2000) } module.exports = { soundEffects, }
平台兼容性
uni-app
Vue2 | Vue3 |
---|---|
√ | ? |
app-vue | app-nvue | app-android | app-ios | app-harmony |
---|---|---|---|---|
? | ? | ? | ? | ? |
H5-Safari | Android Browser | 微信浏览器(Android) | QQ浏览器(Android) | Chrome | IE | Edge | Firefox | PC-Safari |
---|---|---|---|---|---|---|---|---|
? | ? | ? | ? | ? | ? | ? | ? | ? |
微信小程序 | 支付宝小程序 | 百度小程序 | 字节小程序 | QQ小程序 | 钉钉小程序 | 快手小程序 | 飞书小程序 | 京东小程序 |
---|---|---|---|---|---|---|---|---|
? | ? | ? | ? | ? | ? | ? | ? | ? |
快应用-华为 | 快应用-联盟 |
---|---|
? | ? |
uni-app x
app-android | app-ios |
---|---|
? | ? |
H5-Safari | Android Browser | 微信浏览器(Android) | QQ浏览器(Android) | Chrome | IE | Edge | Firefox | PC-Safari |
---|---|---|---|---|---|---|---|---|
? | ? | ? | ? | ? | ? | ? | ? | ? |
-
主要是实现了一些触发音效!
function soundEffects() { const innerAudioContext = uni.createInnerAudioContext(); innerAudioContext.autoplay = true; innerAudioContext.src = '/static/audio/xm2749.wav'; // 触发音效的src innerAudioContext.onError((res) => {}); setTimeout(() => { innerAudioContext.destroy() }, 2000) } module.exports = { soundEffects, }