使用webBrowser1.DocumentStream替换webBrowser1.documentText:
StreamReader reader = new StreamReader(webBrowser1.DocumentStream,Encoding.GetEncoding(webBrowser1.Document.Encoding)); string html = reader.ReadToEnd();
时间: 2024-10-11 12:24:45
使用webBrowser1.DocumentStream替换webBrowser1.documentText:
StreamReader reader = new StreamReader(webBrowser1.DocumentStream,Encoding.GetEncoding(webBrowser1.Document.Encoding)); string html = reader.ReadToEnd();