mpvue操作列表数组时报错
发布于 6 年前 作者 juantan 14828 次浏览 来自 问答

this.lists.splice(i,1)时会报错,错误如下

Error: Failed to execute ‘replaceChild’ on ‘Node’: The node to be replaced is not a child of this node.

先设置this.lists = []; 然后setTimeOut 100毫秒将数组重新赋值就不报错,但是这不是办法呀,求帮助

回到顶部