直接链式操作
JSON.parse(JSON.stringify(你的json数组).replace(/原来的字段名/g, "想要的字段名"));
例如:
const list = [{ id: "1", area: "南明区" }, { id: "2", area: "云岩区" }];
console.log(JSON.parse(JSON.stringify(list).replace(/area/g, "text"))); // [{ id: "1", text: "南明区" }, { id: "2", text: "云岩区" }]