我有一个productData包含 69 个元素的数组,并且productDatagreen在应用程序中有 659 个元素angular。当我这样做时,push所有 659 个元素都进入索引 69,同样的事情发生了cancat。然后我总共有length70 个数组。
我需要length数组 69+659 并且项目应该在同一行中。我怎样才能做到这一点。这是我的代码。
this.productData.push(this.productDatagreen)
this.productData= this.productData.concat([this.productDatagreen])
this.mapImageSeries.data=this.productData;
this.Chart.validateData();
数组截图
紫衣仙女
红颜莎娜
相关分类