PHP 代码:
Set http = Server.CreateObject("Microsoft.XMLHTTP")
http.Open "GET", "http://www.blogweather.net/getweatherxml.aspx?bw_pkid=W10272", False
http.Send()
If http.Status = 200 Then
Set xml = Server.CreateObject("Microsoft.XMLDOM")
xml.Async = False
xml.ValidateOnParse = False
xml.Load(http.ResponseXML)
Set root = xml.documentElement
If IsObject(root) Then
Set nodes = xml.getElementsByTagName("style")
Response.Write(nodes.Length)
End If
End If
而且奇怪的是,IsObject(root) 判斷為 True,但是如果我用
PHP 代码:
Set nodes = root.getElementsByTagName("style")
對象不存在:'root'崩潰中。
測試,http 返回的沒問題。








幫忙看看這段 ASP 代碼有什么問題吧










平板模式