Clear
oIE = Createobject("internetexplorer.application")
oIE.Visible = .T.
cURL = "http://jg.
oIE.Navigate(cURL)
tStartSecond = Seconds()
Do While oIE.Busy = .T. Or oIE.ReadyState#4
If Seconds() - tStartSecond > 10
Exit
Endif
Inkey(0.5)
Enddo
#Define CRLF Chr(13) + Chr(10)
O1 = oIE.Document.GetElementsByTagName("th")
O2 = oIE.Document.GetElementsByTagName("td")
cStr = ""
For I = 0 To O1.Length - 1
&& 获取该元素 (cElement) 的每个内容
cStr = cStr + Iif(Type("O1.Item(I).InnerText") # "U", O1.Item(I).InnerText, "") + " : "
cStr = cStr + Iif(Type("O2.Item(I).InnerHtml") # "U", O2.Item(I).InnerText, "") + CRLF
Endfor
=Strtofile(cStr, "AAA.txt")
oIE.Quit()
Modify File aaa.txt