- 我在vue项目中,created函数中,调用接口返回了企业微信id等参数,然后通过wx.config注入,打印wx.config,都能看见wx.startRecord(),wx.stopRecord(),为什么在调
wx
.
stopRecord
({
success
:
function
(
res
)
{
var
localId
=
res
.
localId
;
}
});
停止录音的时候,报 Cannotation read property 'success' of underfined .而且我发现。wx.config,注入后, wx.ready() 和 wx.error()两个函数都会执行,弄的我都不知道,wx.config到底注入成功了,还是失败了
网友回复
维她命系:
wx.stopRecord 函数停止维护了,建议使用 wx.getRecorderManager
https://developers.weixin.qq.com/miniprogram/dev/api/media/recorder/wx.getRecorderManager.html