vb.net如何删除这个脚本标签?

loading...


0

如何在vb.net中删除此脚本标记?

<script type="text/javascript" src="https://d2nasxlktxv6tm.cloudfront.net/webclient-next/manifest-5d1034b834d8851f0991.js"></script>

我试过这个代码,但仍然没有运气 .

Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click
    If WebBrowser1.ReadyState = WebBrowserReadyState.Complete Then
        For Each ele As HtmlElement In WebBrowser1.Document.All
            If ele.OuterHtml.Contains("https://d2nasxlktxv6tm.cloudfront.net/webclient-next/manifest-5d1034b834d8851f0991.js") Then
                ele.OuterHtml = ""
            End If

        Next
    End If
End Sub

loading...

0回答

No Data

评论

暂时没有评论!