data() {
return {
voiceCtx: uni.createInnerAudioContext(), //当前页面唯一的音频控件
};
},
data() {
return {
voiceCtx: null, //当前页面唯一的音频控件
};
},
在onLoad里面 this.voiceCtx = uni.createInnerAudioContext()
以上两种写法编译到微信开发工具 报错 : Cannot read property 'then' of undefined
这是我查到的类似的问题
我觉得在编译的过程中出了错误,上次已经反应过一次了,再反应一次,可能你们要等到你们信任的人提出来了才会去查。
同样的代码在微信开发工具内写就不会出错。
这个 createInnerAudioContext 在ios和安卓之间差异很大,也没个说明啥的。
1***@qq.com
vue3怎么写
2023-11-17 16:01