我在我的 VB.net (Visual Studio 2017) 项目中成功地在 WebView2 上显示了一个网站,但无法获取 html 源代码。请告诉我如何获取html代码。
我的代码:
Private Sub testbtn_Click(sender As Object, e As EventArgs) Handles testbtn.Click
WebView2.CoreWebView2.Navigate("https://www.microsoft.com/")
End Sub
Private Sub WebView2_NavigationCompleted(sender As Object, e As CoreWebView2NavigationCompletedEventArgs) Handles WebView2.NavigationCompleted
Dim html As String = ?????
End Sub
确实感谢您提前提出建议。