多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
``` let addressDatatitle = {福建省: 2.8, 西藏自治区: 0, 贵州省: 2.7,} let getAddressData = []; let newaddressName = [] let newaddressNum = [] for (let a in addressDatatitle) {//重组数组 let newObj = {}; newObj.name = a; newObj.value = addressDatatitle[a]; getAddressData.push(newObj); newaddressName.push(a); newaddressNum.push(addressDatatitle[a]); } console.log(newaddressName) ```