1,502
社区成员
发帖
与我相关
我的任务
分享
Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
Dim objdoc As Object
Dim k As Integer
Set objdoc = WebBrowser1.Document
For k = 0 To objdoc.All.length - 1
If lcase(objdoc.All(k).tagName) = "input" Then
Print k
End If
Next
End Sub
Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
Dim objdoc As Object
Dim k As Integer
Set objdoc = WebBrowser1.Document
For k = 0 To objdoc.All.length - 1
If objdoc.All(k).tagName = "input" Then
Print k
End If
Next
End Sub
遍历TAG,怎么出不来一个k(定位数)