WebBrowser1.Navigate "http://www.163.com/"
Dim doc, objhtml As Object
Dim strhtml As String If Not WebBrowser1.Busy Then Set doc = WebBrowser1.Document
Set objhtml = doc.body.createtextrange() If Not IsNull(objhtml) Then Text1.Text = objhtml.htmltext End If End If为何获得不了源代码?
Dim doc, objhtml As Object
Dim strhtml As String If Not WebBrowser1.Busy Then Set doc = WebBrowser1.Document
Set objhtml = doc.body.createtextrange() If Not IsNull(objhtml) Then Text1.Text = objhtml.htmltext End If End If为何获得不了源代码?
Set doc = WebBrowser1.Document
Text2.Text =doc.body.innerHtml
这样就可以了