快进快退
fast() {
this.innerAudioContext.pause()
this.innerAudioContext.currentTime+=5;
this.percent=this.innerAudioContext.currentTime
this.ifplay = false;
this.innerAudioContext.play()
},
back() {
this.innerAudioContext.pause()
this.innerAudioContext.currentTime-=5;
this.percent=this.innerAudioContext.currentTime
this.ifplay = false;
this.innerAudioContext.play()
},
报错内容
VM83 WAService.js:2 TypeError: Cannot set property currentTime of #<e> which has only a getter
at Function.<anonymous> (index.js?t=wechat&s=1622598119227&v=04b7b676f32227af3d530a24249d99f3:463)
at :24954/appservice/<audioContext.onplay callback function>
at VM83 WAService.js:2
at c.r (VM83 WAService.js:2)
at c.emit (VM83 WAService.js:2)
at VM83 WAService.js:2
at VM83 WAService.js:2
at c (VM8 asdebug.js:1)
at r.<anonymous> (VM8 asdebug.js:1)
at r.i.emit (VM8 asdebug.js:1)(env: Windows,mp,1.05.2105170; lib: 2.17.0)