js对象内想改变某key名 let myData = JSON.parse(JSON.stringify(data).replace(/name/g, ‘label’)) //data为数组,name为修改前,label为修改后