The returned json format is {"desc":"OK","status":1000,"data":{"wendu":"17","type": "clear", "yesterday" :{"wendu": "20", "type":"Cloudy"},"city":"Beijing"}}
registerData.wendu can be displayed normally, but registerData.yesterday.type reports an error
Your json format is not legal at all.
Let you change his code in the background, the format is wrong
The data can be extracted according to the format you provided later. You can console.log() to output your registerData.
Maybe there is an extra layer of data inside
The brackets are wrong. . The additional json should be in double quotes
Single quotes cannot be used in JSON
....Forget it, I can't understand the description of the problem