
每个语言都有抓取的函数,网上有代码,你可以找一下,不过有点麻烦,还是使用楼下的那种别的网站提供的代码吧。
例如河南郑州的代码:你只需要在你网站插入下面语句就行了:<iframe src="http://m.weather.com.cn/m/pn1/weather.htm " width="235" height="20" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>
你可以在http://service.weather.com.cn/plugin/forcast.shtml?id=pn1选择你要显示城市的代码
首先你要懂html5 canvas,javascript,css3,这样才能做出漂亮的动画。http://binma85.iteye.com/blog/1469516
这个链接里面有天气的接口,里面提供了一些天气的信息,你可以用ajax调用。
具体的你可以参加一下慕课网上面这个jquery mobile的列车时刻表教程。
http://www.imooc.com/learn/207
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)