zqwuwei的技术博客

理论指导实践,在实践中更好的理解理论
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

02 2012 档案

摘要:///<summary>///时间格式转换(WedNov0400:00:00+08002009)///</summary>///<paramname="strDate"></param>///<returns></returns>publicstaticDateTimeTransDate(stringstrDate){System.Globalization.CultureInfocultureInfo=System.Globalization.CultureInfo.CreateSpecificCul 阅读全文

posted @ 2012-02-22 10:32 zqwuwei 阅读(356) 评论(0) 推荐(0)

摘要://截取字符串//参数:n保留的字符串的长度(一个全角字符的长度为2)functioncutString(str,n){varr=/[^\x00-\xff]/g;if(str.length<=Math.floor(n/2)||str.replace(r,"xx").length<=n){returnstr;}varm=Math.floor(n/2);vartempLen=str.substr(0,m).replace(r,"xx").length;for(vari=m;i<str.length;i++){tempLen+=str.sub 阅读全文

posted @ 2012-02-21 13:59 zqwuwei 阅读(184) 评论(0) 推荐(0)

摘要:软件开发-C#及ASP.NET命名规范 http://www.docin.com/p-80209231.html 阅读全文

posted @ 2012-02-16 17:48 zqwuwei 阅读(157) 评论(0) 推荐(0)