res.results 是接口返回的对象数组
需要将其中的 floor属性名换成name
res.results = res.results.map(v=>{return {name: v.floor}})
或者
JSON.parse(JSON.stringify(res.results).replace(/name/g, 'floor'))

  

相关文章:

  • 2022-12-23
  • 2021-06-29
  • 2022-12-23
  • 2022-12-23
  • 2022-02-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-01
  • 2022-12-23
相关资源
相似解决方案