我有一個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();數組截圖
如何按現有元素的相同順序推送數組元素
holdtom
2023-04-27 10:16:09