《第一行代码》中获取天气的方法已经不行了,天气老是不更新。。。搞了大半天,现在终于搞定了。
一。数据来源
http://wthrcdn.etouch.cn/weather_mini?city=北京
通过城市名字获得天气数据,json数据
http://wthrcdn.etouch.cn/weather_mini?citykey=101010100
<