public Form1()
{
InitializeComponent();
webBrowser1.Navigated += webBrowser1_Navigated;
webBrowser1.Navigate("http://www.baidu.com");
}
private void webBrowser1_Navigated(object sender, EventArgs e)
{
Save();
}
private void Save()
{
string text = webBrowser1.DocumentText;
}
text就是源代码,html内容,自己做保存处理就可以了
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货