- 博客(8)
- 资源 (3)
- 收藏
- 关注
转载 用string来分割 split
//用string来分割 string[] arr = { }; arr= System.Text.RegularExpressions.Regex.Split(input, "\r\n", System.Text.RegularExpressions.RegexOptions.IgnoreCase);
2013-01-21 15:33:49 328
转载 根据ip地址查询城市
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Web
2013-01-11 17:30:16 340
转载 C#序列化JSON
using System.Text; using System.IO; using System.Runtime.Serialization.Json; namespace UserCenter.Ajax { public class JsonSerializer { // public string GetJson(T obj) {
2012-12-21 11:07:34 324
转载 文件下载(PDF;WORD....)
using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebContro
2012-08-01 17:22:37 484
原创 计算时间差
public static string CalculationTime(DateTime Starttime) { string timeString = ""; DateTime EndTime = DateTime.Now; if (EndTime < Starttime)
2012-02-10 14:51:13 302
转载 JS去空格
str为要去除空格的字符串: 去除所有空格: str = str.replace(/\s+/g,""); 去除两头空格: str = str.replace(/^\s+|\s+$/g,""); 去除左空格: str=str.replace( /^\s*/, ''); 去除右空格: str=str.replace(/(\s*$)/g, "")
2011-12-23 10:07:52 379
转载 C#生成PDF文档,读取TXT文件内容
using System.IO; using iTextSharp.text; using iTextSharp.text.pdf; //需要在项目里引用ICSharpCode.SharpZipLib.dll和itextsharp.dll public string TxtFilePath; public string SavePdfPath;//保存PDF的路径 #regi
2011-12-19 17:23:32 611
转载 javascript常用的小技巧
事件源对象 event.srcElement.tagName event.srcElement.type 捕获释放 event.srcElement.setCapture(); event.srcElement.releaseCapture(); 事件按键 event.keyCode event.shiftKey event.altKey event.ctrlK
2011-12-19 09:30:24 984 2
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人