日期:2014-05-16  浏览次数:20376 次

这样的js数组如何能按要求遍历?!

        var config = {"returncode":0,"message":"成功","result":{"seriesid":467,"paramtypeitems":[{"name":"基本参数","paramitems":[{"name":"车型名称","valueitems":[{"specid":15810,"value":"奔驰GL级 2013款 GL500 4MATIC"},{"specid":9207,"value":"奔驰GL级 2011款 GL450 4MATIC尊贵型"},{"specid":10257,"value":"奔驰GL级 2011款 GL450 尊贵型 Grand Edition"}]},{"name":"厂商指导价(元)","valueitems":[{"specid":15810,"value":"159.80万"},{"specid":9207,"value":"159.80万"},{"specid":10257,"value":"159.80万"}]},{"name":"厂商","valueitems":[{"specid":15810,"value":"奔驰(进口)"},{"specid":9207,"value":"奔驰(进口)"},{"specid":10257,"value":"奔驰(进口)"}]},{"name":"级别","valueitems":[{"specid":15810,"value":"全尺寸SUV"},{"specid":9207,"value":"全尺寸SUV"},{"specid":10257,"value":"全尺寸SUV"}]},{"name":"发动机","valueitems":[{"specid":15810,"value":"4.7T 435马力 V8"},{"specid":9207,"value":"4.7L 340马力 V8"},{"specid":10257,"value":"4.7L 340马力 V8"}]},{"name":"变速箱","valueitems":[{"specid":15810,"value":"7挡手自一体"},{"specid":9207,"value":"7挡手自一体"},{"specid":10257,"value":"7挡手自一体"}]},{"name":"长*宽*高(mm)","valueitems":[{"specid":15810,"value":"5120*1934*1850"},{"specid":9207,"value":"5099*1920*1840"},{"specid":10257,"value":"5099*1920*1840"}]},{"name":"车身结构","valueitems":[{"specid":15810,"value":"5门7座SUV"},{"specid":9207,"value":"5门7座SUV"},{"specid":10257,"value":"5门7座SUV"}]},{"name":"最高车速(km/h)","valueitems":[{"specid":15810,"value":"250"},{"specid":9207,"value":"235"},{"specid":10257,"value":"235"}]},{"name":"官方0-100km/h加速(s)","valueitems":[{"specid":15810,"value":"5.4"},{"specid":9207,"value":"7.2"},{"specid":10257,"value":"7.2"}]},{"name":"实测0-100km/h加速(s)","valueitems":[{"specid":15810,"value":"-"},{"specid":9207,"value":"-"},{"specid":10257,"value":"-"}]},{"name":"实测100-0km/h制动(m)","valueitems":[{"specid":15810,"value":"-"},{"specid":9207,"value":"-"},{"specid":10257,"value":"-"}]},{"name":"实测油耗(L/100km)","valueitems":[{"specid":15810,"value":"-"},{"specid":9207,"value":"-"},{"specid":10257,"value":"-"}]},{"name":"工信部综合油耗(L/100km)","valueitems":[{"specid":15810,"value":"12.3"},{"specid":9207,"value":"-"},{"specid":10257,"value":"-"}]},{"name":"整车质保","valueitems":[{"specid":15810,"value":"三年不限公里"},{"specid":9207,"value":"三年不限公里"},{"specid":10257,"value":"三年不限公里"}]}]},{"name":"车身","paramitems":[{"name":"长度(mm)","valueitems":[{"specid":15810,"value":"5120"},{"specid":9207,"value":"5099"},{"specid":10257,"value":"5099"}]},{"name":"宽度(mm)","valueitems":[{"specid":15810,"value":"1934"},{"specid":9207,"value":"1920"},{"specid":10257,"value":"1920"}]},{"name":"高度(mm)","valueitems":[{"specid":15810,"value":"1850"},{"specid":9207,"value":"1840"},{"specid":10257,"value":"1840"}]},{"name":"轴距(mm)","valueitems":[{"specid":15810,"value":"3075"},{"specid":9207,"value":"3075"},{"specid":10257,"value":"3075"}]},{"name":"前轮距(mm)","valueitems":[{"specid":15810,"value":"-"},{"specid":9207,"value":"1645"},{"specid":10257,"value":"1645"}]},{"name":"后轮距(mm)","valueitems":[{"specid":15810,"value":"-"},{"specid":9207,"value":"1648"},{"specid":10257,"value":"1648"}]},{"name":"最小离地间隙(mm)","valueitems":[{"specid":15810,"value":"-"},{"specid":9207,"value":"-"},{"specid":10257,"value":"-"}]},{"name":"整备质量(kg)","valueitems":[{"specid":15810,"value":"-"},{"specid":9207,"value":"2430"},{"specid":10257,"value":"2430"}]},{"name":"车身结构","valueitems":[{"specid":15810,"value":"SUV"},{"specid":9207,"value":"SUV"},{"specid":10257,"value":"SUV"}]},{"name":"车门数(个)","valueitems":[{"specid":15810,"value":"5"},{"specid":9207,"value":"5"},{"specid":10257,"value":"5"}]},{"name":"座位数(个)","valueitems":[{"specid":15810,"value":"7"},{"specid":9207,"value":"7"},{"specid":10257,"value":"7"}]},{"name":"油箱容积(L)","valueitems":[{"specid":15810,"value":"100"},{"specid":9207,"value":"100"},{"specid":10257,"value":"100"}]},{"name":"行李厢容积(L)","valueitems":[{"specid":15810,"value"