写日志 刷新 共 1 篇

读取网页脚本的函数

2010-04-21 16:19:47 海蓝港湾

Private Function ReadScript(vWeb As WebBrowser) As String
    Dim Item As Object, s As String
    Dim Num As Integer
    If vWeb.object.Document Is Nothing Then Exit Function
    Num = 0
    For Each Item In vWeb.object.Document.scripts
        Num = Num + 1
        s = s + "===========" + Str(Num) + "===========" + vbCrLf
        s = s + Item.outerHTML + vbCrLf
        s = s + "======================================" + vbCrLf + vbCrLf + vbCrLf
    Next Item
    ReadScript = s

    Set Item = Nothing
End Function

阅读全文 编辑 删除

Powered by BBSxp /Licence © 1998-2005
Script Execution Time:0ms
晋ICP备07500169号-1