Stories

Detail Return Return

數組轉換 - Stories Detail

1、場景 :批量新增的時候後台接收的數組對象只需要一兩個參數的信息

image.png

console.log("selectedRows--", selectedRows)
  let arrnew = selectedRows.map((item,index) => {
      return Object.assign({},  {'group_Dr':item.group_Dr,"mapInterface_Dr":item.mapInterface_Dr})})
      console.log("arrnew--",arrnew)

後續迭代》》

user avatar dingtongya Avatar yinzhixiaxue Avatar zourongle Avatar anchen_5c17815319fb5 Avatar hard_heart_603dd717240e2 Avatar shuirong1997 Avatar xiaolei_599661330c0cb Avatar yqyx36 Avatar zzd41 Avatar assassin Avatar hyfhao Avatar yangxiansheng_5a1b9b93a3a44 Avatar
Favorites 84 users favorite the story!
Favorites

Add a new Comments

Some HTML is okay.