1 2 3 4

map方法

const data = analysis.map(({ ds, index }) => {
      const time = `${ds}`;
      const value = index;
      console.log({ time, value })
      return { time, value };
    });

  

posted @ 2019-04-27 19:31  红鲤鱼与LV  阅读(174)  评论(0编辑  收藏  举报