VUE把一个数组的元素赋值给另一个数组时出现问题的解决方法

 

方法1:循环push

for(var i in that.xuanzArr_beixuan){
that.xuanzArr.push([]);
}
方法2:解析JSON
JSON.parse(JSON.stringify(this.templateData))
posted @ 2020-01-03 10:23  怪咖咖  阅读(7129)  评论(0编辑  收藏  举报