- 调试区输出对象,值前面会默认有原型链的内容,怎样隐藏掉?
[图片]
2020-10-09 - 集成极光IM即时通讯,监听消息不生效?
onMsgReceive 和 onSyncConversation 这两个函数不生效。 聊天消息实时监听 离线消息同步监听
2020-09-17 - wx.getRecorderManager() 开始录音,开发者工具没有反应,查授权也开启了?
const recorderManager = wx.getRecorderManager() onReady: function () { console.log(recorderManager) recorderManager.onStart(() => { //开始录音回调 console.log('recorder start') }) recorderManager.onStop((res) => { // 结束录音回调 console.log('recorder stop', res) wx.hideToast() const { tempFilePath } = res }) wx.getSetting({ success:res=>{ console.log(res) wx.authorize({ scope: 'scope.record', success:res=>{ console.log(res) } }) } }) }, // 开始录制语音 longPressStart(){ this.setData({ voice:true }) wx.showToast({ title: '开始录制语音...', duration:60000, icon:'none' }) recorderManager.start({ sampleRate: 44100, numberOfChannels: 1, encodeBitRate: 192000, frameSize: 50, format:'mp3' }) }, // 结束录制语音 longPressEnd(){ this.setData({ voice:false }) wx.hideToast() recorderManager.stop() },
2020-09-03