vb.net 如何通过webbrowser获取javascript中的变量值?

一筹莫展啊,只有5分了
2025-02-27 07:30:17
推荐回答(1个)
回答1:

vb.net:
Dim www = WebBrowser1.Document.DomDocument.parentWindow.GetType.InvokeMember("fontstylevalue", Reflection.BindingFlags.GetProperty, Nothing, WebBrowser1.Document.DomDocument.parentWindow, Nothing)
html:
var fontstylevalue;