随笔-
5
文章-
0
评论-
3
正文内容加载中...
posted @ 2010-10-09 09:33 jonvon 阅读 (485) 评论 (0)
摘要:String Format for Double [C#]// just two decimal placesString.Format("{0:0.00}", 123.4567); // "123.46"String.Format("{0:0.00}", 123.4); // "123.40"String.Format("{0:0.00}", 123.0); // "123.00"// max....
阅读全文
posted @ 2010-07-15 08:56 jonvon 阅读 (981) 评论 (0)
摘要:View Code(function($){$.fn.MultiCheck=function(options){settings=$.extend({groupName:'',checked:true},options||{});vargroupTarget=(settings.groupName=='')?':checkbox':'input[name='+settings.groupName+']';switch(settings.checked){casetrue:$(groupTarget).each(fu
阅读全文
posted @ 2009-07-16 11:12 jonvon 阅读 (540) 评论 (0)
摘要:mvc 分页, mvc url 分页,mvc 分页控件
阅读全文
posted @ 2009-05-11 09:20 jonvon 阅读 (805) 评论 (3)
摘要:在unicode 字符串中,中文的范围是在4E00..9FFF:CJK Unified Ideographs。通过对字符的unicode编码进行判断来确定字符是否为中文。protected bool IsChineseLetter(string input,int index){int code = 0;int chfrom = Convert.ToInt32("4e00", 16); //范围(0x4e00~0x9fff)转换成int(chfrom~chend) int chend = Convert.ToInt32("9fff", 16);if (i 阅读全文
posted @ 2009-02-18 16:51 jonvon 阅读 (3226) 评论 (0)
IP地址位置数据由纯真CZ88提供支持