Parse a responseText to HTML in VBScript

后端 未结 1 936
猫巷女王i
猫巷女王i 2021-01-21 23:17

I\'m trying to retrieve HTML Class Names from a string variable created by responseText. I need to accomplish this using VBscript. Here is a sample of current code:



        
1条回答
  •  天涯浪人
    2021-01-21 23:50

    I've run into this before. Although documented, the getElementsByClassName() method doesn't seem to actually be supported. Use something like this to work around the issue:

    For Each el In html.getElementsByTagName("...")
      If el.ClassName = "tracking-history-date" Then
        Set trackdate = el
        Exit For
      End If
    Next
    

    0 讨论(0)
提交回复
热议问题