摘要:
AjaxJavaScript天气预报php天气预报,用php来写一个天气预报的模块。天气数据是通过采集中国气象网站的。本来中国天气网站也给出了数据的API接口。以下是API的地址。返回的数据格式为json格式。1. http://www.weather.com.cn/data/sk/101010100.html2. http://www.weather.com.cn/data/cityinfo/101010100.html3. http://m.weather.com.cn/data/101010100.htmlURL中的数字”101010100“是城市代码。所以可以先列出每个城市的城市代码, 阅读全文