上一页 1 ··· 3 4 5 6 7
摘要: public string getHtml(string Url, string type = "UTF-8") { try { System.Net.HttpWebRequest wReq = (HttpWebRequest)System.Net.HttpWebRequest.Create(Url 阅读全文
posted @ 2016-06-12 14:45 —阿峰— 阅读(2258) 评论(0) 推荐(0) 编辑
摘要: public string funString_DateNear(int intDays, string strDay) { DateTime? dt = null; string strTmp = strDay; int intH = 0; bool isNear = false; if (str 阅读全文
posted @ 2016-06-06 17:03 —阿峰— 阅读(522) 评论(0) 推荐(0) 编辑
摘要: Regex reg = new Regex("<div[^>]*?class=\"类属性名称\"[^>]*>(.*?) </div>"); 此正则表达式套用即可,如果需要匹配多个则在</div>前面将<div[^>]*?class=\"类属性名称\"[^>]*>(.*?) </div> 再写一遍 o 阅读全文
posted @ 2016-06-06 17:01 —阿峰— 阅读(281) 评论(0) 推荐(0) 编辑
摘要: public string getHtml(string Url, string type = "UTF-8") { try { System.Net.WebRequest wReq = System.Net.WebRequest.Create(Url); System.Net.WebRespons 阅读全文
posted @ 2016-06-06 16:54 —阿峰— 阅读(4223) 评论(0) 推荐(0) 编辑
摘要: 一、概述 除了正常运行模式,ECMAscript 5添加了第二种运行模式:“严格模式”(strict mode)。顾名思义,这种模式使得Javascript在更严格的条件下运行。 设立”严格模式”的目的,主要有以下几个: - 消除Javascript语法的一些不合理、不严谨之处,减少一些怪异行为; 阅读全文
posted @ 2016-05-30 10:01 —阿峰— 阅读(239) 评论(0) 推荐(0) 编辑
摘要: using ThoughtWorks; using ThoughtWorks.QRCode; using ThoughtWorks.QRCode.Codec; using ThoughtWorks.QRCode.Codec.Data; using System.Drawing; Bitmap bt; 阅读全文
posted @ 2016-05-25 11:54 —阿峰— 阅读(160) 评论(0) 推荐(0) 编辑
摘要: public string Excel(System.Data.DataTable dt) { //模板的路径 string strUploadPath = HttpContext.Current.Server.MapPath("../template/"); //模板的名称 string strF 阅读全文
posted @ 2016-05-25 11:53 —阿峰— 阅读(1619) 评论(0) 推荐(0) 编辑
摘要: <!doctype html> <html> <head> <meta charset="utf-8"> <title>倒计时js代码 </title> </head> <body> 倒计时js代码 <DIV id="CountMsg" class="HotDate"> <span id="t_d" 阅读全文
posted @ 2016-05-25 11:44 —阿峰— 阅读(371) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.o 阅读全文
posted @ 2016-05-25 11:43 —阿峰— 阅读(208) 评论(0) 推荐(0) 编辑
摘要: function addFavorite() { var url = window.location; var title = document.title; var ua = navigator.userAgent.toLowerCase(); if (ua.indexOf("360se") > 阅读全文
posted @ 2016-05-25 11:41 —阿峰— 阅读(387) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7