摘要: /// <summary> /// 将JSON解析成DataTable,只限DataGrid标准的JSON数据 /// 例如:Json={\"rows\":[{\"code\":\"001\",\"name\":\"Name 1\"},{\"code\":\"002\",\"name\":\"Name 2\"}]}"; /// </summary> /// <param nam 阅读全文
posted @ 2012-12-27 14:03 小川丶 阅读(303) 评论(0) 推荐(0) 编辑
摘要: window.onload=function(){ $(document).keydown(function(event){ switch(event.keyCode) { case 13:{} } }) ... 阅读全文
posted @ 2012-12-13 17:36 小川丶 阅读(2342) 评论(0) 推荐(0) 编辑
摘要: sql 字符串分割后分组 阅读全文
posted @ 2012-08-08 21:43 小川丶 阅读(667) 评论(0) 推荐(0) 编辑
摘要: c# Unicode编码 阅读全文
posted @ 2012-07-17 13:59 小川丶 阅读(3291) 评论(0) 推荐(0) 编辑
摘要: js Number 转为 百分比 阅读全文
posted @ 2012-07-12 14:44 小川丶 阅读(27698) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace page{ public class PagedList<T> : List<T> { public PagedList(IEnumerable<T> content, int currentPage, int pageSize, int totalCount) : this(totalCount, currentPage, pageSize) { ... 阅读全文
posted @ 2012-05-16 21:26 小川丶 阅读(834) 评论(0) 推荐(0) 编辑
摘要: MatchCollection mc = Regex.Matches("id=5||name=text||item=0||selected=true", @"\w+=(?<value>[^\||]*)"); foreach (Match m in mc) { GroupCollection gc = m.Groups; switch (i) { ... 阅读全文
posted @ 2012-04-19 14:24 小川丶 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 分割js 数组:function test() {}test.prototype = { parseValuesFromArray: function (array) { if (array && array.length && array.length > 0) { for (var x = 0, xlen = array.length; x < xlen; x++) { var value = array[x].split('='); if (value.length > 1) { if (value.length > 阅读全文
posted @ 2012-04-13 16:08 小川丶 阅读(3045) 评论(0) 推荐(0) 编辑
摘要: sql 获取一个周的周一和周日 阅读全文
posted @ 2011-10-24 15:57 小川丶 阅读(2756) 评论(0) 推荐(0) 编辑
摘要: sql 计算岁数 阅读全文
posted @ 2011-10-14 17:35 小川丶 阅读(273) 评论(0) 推荐(0) 编辑