uniapp修改data数据后页面未更新渲染
页面渲染相关问题
·
如下代码块,根据打印的结果,mediaList数据已经被修改,但是页面没有渲染出来
_this.mediaList[index].currentTime = hxt.formatSeconds(_this.audioContext.currentTime);
this.$forceUpdate()
_this.mediaList[index].currentTime = hxt.formatSeconds(_this.audioContext.currentTime);
_this.$forceUpdate();
that.$nextTick(()=>{});
that.$nextTick(()=>{});
that.msg.MediaList[that.audioId].value = parseInt(parseInt((
innerAudioContext.currentTime / innerAudioContext.duration) *
100));
that.msg.MediaList[that.audioId].currentTime = hxt.formatSeconds(
innerAudioContext.currentTime);
that.msg.MediaList[that.audioId].sumTime = hxt.formatSeconds(
innerAudioContext.duration);
更多推荐
所有评论(0)