- 部分安卓机在上面删除,不是在发现里删除小程序,缓存就不会清除
部分安卓机在上面删除,不是在发现里删除小程序,缓存就不会清除,请问怎么在小程序删除时清缓存
2018-10-25 - touchend 不触发
- bug:长按开始录音,滑动后有时touchend 不触发导致录音没有结束 - 预期效果:松开手触发touchend——>录音结束 备注:长按后触发longpress开始录音——>不松手开始滑动(尤其是屏幕边界处)——>松开手不能触发touchend
2018-10-23 - 录音无法启动,之前测试都没有问题,求大神指教
//实现一个计时的录音 blueplay: function () { var that = this; var ms = 'modalvoice.m' var ss = 'modalvoice.s' that.setData({ time: 1, [ms]: 0, [ss]: 0, }) this.recorderManager = wx.getRecorderManager(); this.recorderManager.onStart(function () { // 录音开始的回调处理 var interval= setInterval(function () { var time = that.data.time; console.log(time) if (time === 2) { clearInterval(interval); }else{ var m = that.data.modalvoice.m var s = that.data.modalvoice.s var ms = 'modalvoice.m' var ss = 'modalvoice.s' if(s!==60){ console.log(m); that.setData({ [ms]: m, [ss]: s+1 }) }else{ that.setData({ [ms]: m+1, [ss]: 0, }) } } }, 1000); }); this.recorderManager.onStop(function (res) { // 停止录音之后,把录取到的音频放在res.tempFilePath var obj = { bindtap: "middleplay", src: '../../image/blue.png', index: res.tempFilePath }; that.data.middle.push(obj) var middle = that.data.middle; that.setData({ middle: middle }); var time = that.data.time; console.log(time) }); const options = { sampleRate: 44100, numberOfChannels: 1, encodeBitRate: 192000, format: 'mp3', frameSize: 50 } this.recorderManager.start(options); //modal var hide = that.data.hidden; that.setData({ hidden:false }) },
2018-07-31