VUE把一个数组的元素赋值给另一个数组时出现问题的解决方法
方法1:循环push
for(var i in that.xuanzArr_beixuan){
that.xuanzArr.push([]);
}
方法2:解析JSON
JSON.parse(JSON.stringify(this.templateData))
方法1:循环push
for(var i in that.xuanzArr_beixuan){
that.xuanzArr.push([]);
}
方法2:解析JSON
JSON.parse(JSON.stringify(this.templateData))