後臺返回一個數組,但是缺少一個圖片元素,需要循環添加三個圖片,實現代碼

this.giftList = resp.result; console.log(this.giftList); 返回如下:返回的原來是沒有icon的,是處理之後的 var arr2 = [] for (let index = 0; index < this.giftList.length; index++) { let item = this.giftList[index] if ((index
相關文章
相關標籤/搜索