摘要: const json = JSON.parse(JSON.stringify(options).replace(/name/g,"label")); 注: 1、options是需要更改属性的对象 2、replace(/name/g,"label") ,将对象里所有属性为name的都修改成label 阅读全文
posted @ 2018-09-03 15:46 小欣子 阅读(14441) 评论(0) 推荐(2) 编辑