js对象,属性不固定,怎么转数组

"future":{

        "day_20180829":{            "temperature":"24℃~28℃",            "weather":"中雨转暴雨",            "weather_id":{                "fa":"08",                "fb":"10"
            },            "wind":"东南风3-5级",            "week":"星期三",            "date":"20180829"
        },        "day_20180830":{            "temperature":"24℃~29℃",            "weather":"大雨-暴雨转雷阵雨",            "weather_id":{                "fa":"23",                "fb":"04"
            },            "wind":"持续无风向微风",            "week":"星期四",            "date":"20180830"
        }}

如上,我想转成[0:xxxxx,1:xxxxx,2:xxxxx]这样的格式。。现在我自己写成了这样。。转换没成功

https://img1.mukewang.com/5b951ae900012b4403950242.jpg

阿波罗的战车
浏览 899回答 1
1回答
打开App,查看更多内容
随时随地看视频慕课网APP