第一种:(json格式)API:http://wthrcdn.etouch.cn/weather_mini?city=常州
第二种:(xml格式)API:http://wthrcdn.etouch.cn/WeatherApi?citykey=101191101
(101191101)是城市代码。
区别:第二种信息比第一种更齐全。
第一种接口调用结果如下:
{
"data": {
"yesterday": {
"date": "18日星期二",
"high": "高温 25℃",
"fx": "南风",
"low": "低温 21℃",
"fl": "<![CDATA[<3级]]>",
"type&