11 2014 档案

摘要:function getQueryString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = window.location.search.substr(1).match(reg)... 阅读全文
posted @ 2014-11-13 17:11 jiang_jiang 阅读(299) 评论(0) 推荐(0)
摘要:今天在设置p标签时,为p标签设置了以下属性:p {line-height :70px; margin-left :10px; white-space :nowrap ;width :700px; text-overflow:ellipsis;}发现死活不起作用,连width都不起作用,然后加了个... 阅读全文
posted @ 2014-11-13 15:34 jiang_jiang 阅读(4701) 评论(0) 推荐(0)
摘要://把对象序列化为json对象public static string GetJson(T obj){ DataContractJsonSerializer json=new DataContractJsonSerializer(typeof(T)); using(MemoryStream ... 阅读全文
posted @ 2014-11-12 21:10 jiang_jiang 阅读(142) 评论(0) 推荐(0)
摘要:1 class ExcelHelper : IDisposable 2 { 3 private string fileName = null; //文件名 4 private IWorkbook workbook = null; 5 ... 阅读全文
posted @ 2014-11-12 20:54 jiang_jiang 阅读(358) 评论(0) 推荐(0)
摘要:public int calStrLen(string Str){ int i=0; if(Str==null) { return i; } else { foreach(char c in Str) { if(c>0x4e00&&c<=0x9fa5) ... 阅读全文
posted @ 2014-11-12 20:24 jiang_jiang 阅读(294) 评论(0) 推荐(0)