Hero is coming back

风吹呀吹

风会指引你前进的方向

C# 得到页面Code

using System.Net;

public string getCode(string url)
        {
            string htmlCode;
            using (WebClient client = new WebClient())
            {
                 htmlCode = client.DownloadString(url);
            }
            return htmlCode;
        }

 

posted @ 2017-11-15 13:55  风吹呀吹  阅读(176)  评论(0编辑  收藏  举报