返回的json格式为 {"desc":"OK","status":1000,"data":{"wendu":"17","type": "晴", "yesterday":{"wendu": "20", "type":"多云"},"city":"北京"}}registerData.wendu 可以正常显示,但registerData.yesterday.type 报错了
1 回答
ITMISS
TA贡献1871条经验 获得超8个赞
单引号是不能用于JSON的
{"data": {{"wendu": "17", "type": "晴"}, "yesterday": {"wendu": "20", "type": "多云"}}
添加回答
举报
0/150
提交
取消