mpvue操作列表数组时报错

发布于 7 年前作者 juantan14969 次浏览最后编辑 7 年前来自 ask

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

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

WXOPEN Club 内容图片

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

0 回复
暂无回复