如下代码块,根据打印的结果,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);
Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐