js 更改json的 key

let t = data.map(item => {
          return{
            fee: item['费用'],
            companyName1: item.companyName,
            remark1: item.remark,
            beginTime1: item.beginTime,
            endTime1: item.endTime
          }
        })
        console.log(t) 

源地址:https://www.cnblogs.com/Marydon20170307/p/8676611.html

posted @ 2019-01-24 11:18  11个条子  阅读(1741)  评论(0编辑  收藏  举报