Blueherb In solitude, where we are least alone

三月梅雨

三月梅雨

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
//将一个对象中的数据传入新的数组中 
let unit=[]
for (let index = 0; index < result.length; index++) {
        unit[index] = result[index].unit
        //
      }
 
for (let index = 0; index < result.length; index++) {
        unit.push(result[index].unit)
      }
posted on 2022-03-19 23:19  /*我爱的是三月梅雨*/  阅读(392)  评论(0)    收藏  举报