- currentTime 属性设置失效
当需要拖动滑块控制音频时,先设置音频只有在播放的状态下才能拖动重新设置currentTime。
代码片段:
onDrag(value, index, ext) {
// 在已经播放的前提下才能拖动滑条
if (this.isPlaying) {
this.audioClickSatus = 1
this
onDrag(value, index, ext) {
// 在已经播放的前提下才能拖动滑条
if (this.isPlaying) {
this.audioClickSatus = 1
this