如题所述
第1个回答 2018-06-23
var json={"a":"aaa","b":{"c":"ccc","d":[{"e":"01","g":"kkkk"},{"e":"07","g":"lllll"},{"e":"05","g":"xxxxx"},{"e":"03","g":"kkkk"}]}};var arr=[];for(var i=0;i<json.b.d.length;i++){ arr[i]=json.b.d[i].e+"-"+json.b.d[i].g;}console.log(arr);本回答被网友采纳