Private Sub Command1_Click() WebBrowser1.Navigate "http://www.applevb.com" End SubPrivate Sub Command2_Click() Dim x For Each x In WebBrowser1.Document.All Text1.Text = Text1.Text + x.innerhtml Next x End Sub不过速度可能比较慢
或者: Private Sub Command1_Click() WebBrowser1.Navigate "http://www.applevb.com" End SubPrivate Sub Command2_Click() Text1.Text = WebBrowser1.Document.body.innerhtml End Sub不过只能获得body的html
WebBrowser1.Navigate "http://www.applevb.com"
End SubPrivate Sub Command2_Click()
Dim x
For Each x In WebBrowser1.Document.All
Text1.Text = Text1.Text + x.innerhtml
Next x
End Sub不过速度可能比较慢
Private Sub Command1_Click()
WebBrowser1.Navigate "http://www.applevb.com"
End SubPrivate Sub Command2_Click()
Text1.Text = WebBrowser1.Document.body.innerhtml
End Sub不过只能获得body的html