|
@@ -27,10 +27,10 @@ export function useAudio() {
|
|
alert("我解锁了")
|
|
alert("我解锁了")
|
|
})
|
|
})
|
|
sound.on('playerror',(err)=>{
|
|
sound.on('playerror',(err)=>{
|
|
- alert(err)
|
|
|
|
|
|
+ alert(err+",播放失败")
|
|
})
|
|
})
|
|
sound.on('loaderror',(err)=>{
|
|
sound.on('loaderror',(err)=>{
|
|
- alert(err)
|
|
|
|
|
|
+ alert(err+"加载失败")
|
|
})
|
|
})
|
|
sound.once("load", function () {
|
|
sound.once("load", function () {
|
|
let id = sound.play();
|
|
let id = sound.play();
|