1.如何用vb得到网页的引用源码源码用源代码
如何用vb得到网页的源代码
1 先加载网页:
Private Sub Form_Load()
WebBrowser1.Navigate "/question/.html"
End Sub
2 加载完成后取字符串到文本框:
Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
Dim doc As Object, objhtml As Object
Dim strhtml As String
On Error GoTo errorsub
Me.Caption = WebBrowser1.LocationName & " 加载完成"
If MaxWebNum <= 0 Then
Set doc = WebBrowser1.Document
Set objhtml = doc.body.createtextrange()
If Not IsNull(objhtml) Then
strhtml = WebBrowser1.Document.body.innertext
Text1.Text = strhtml
End If
End If
Exit Sub
errorsub:
Text1.Text = "错误!!引用源码源码用文章论坛源码!引用源码源码用资源码怎么下载"
引用源码源码用docker源码分析豆瓣End Sub
引用源码源码用docker源码分析豆瓣2025-01-01 10:16
2025-01-01 10:15
2025-01-01 10:03
2025-01-01 09:44
2025-01-01 09:14
2025-01-01 09:01
2025-01-01 08:35
2025-01-01 08:34