06 2016 档案
摘要:public string getHtml(string Url, string type = "UTF-8") { try { System.Net.HttpWebRequest wReq = (HttpWebRequest)System.Net.HttpWebRequest.Create(Url
阅读全文
摘要:public string funString_DateNear(int intDays, string strDay) { DateTime? dt = null; string strTmp = strDay; int intH = 0; bool isNear = false; if (str
阅读全文
摘要:Regex reg = new Regex("<div[^>]*?class=\"类属性名称\"[^>]*>(.*?) </div>"); 此正则表达式套用即可,如果需要匹配多个则在</div>前面将<div[^>]*?class=\"类属性名称\"[^>]*>(.*?) </div> 再写一遍 o
阅读全文
摘要:public string getHtml(string Url, string type = "UTF-8") { try { System.Net.WebRequest wReq = System.Net.WebRequest.Create(Url); System.Net.WebRespons
阅读全文