摘要:
C#中的webbrowser控件比较好用. 下面本人搜索整理的几个小技巧.1. 从C#中取得javascript的变量值.using mshtml;using System.Reflection; IHTMLDocument2 vDocument = webBrowser1.Document.DomDocument as IHTMLDocument2; IHTMLWindow2 vWindow = vDocument.parentWindow; Type vWindowType = vWindow.GetType(); object xpt = vWindowType.InvokeMember 阅读全文