简爱博客
VBS 获取指定城市天气预报
2013-10-1 简爱
VBS 获取指定天气预报

' VBS 获取指定城市天气预报
GetWeather "嘉定"

Function GetWeather(city)
On Error Resume Next
With CreateObject("Microsoft.XMLHTTP")
.Open "GET","http://api.asilu.com/weather/?output=text&city="& city,False
.Send:body=.ResponseText
End With
msgbox body,64+4096, "天气预报"
End Function


评论:
黎健雄
2013-10-01 19:16 回复
哎呦喂好神奇啊。
黎健雄
2013-10-01 19:16 回复
有此等好事?
我测试。
1 2 3