摘要:
/// <summary> /// 将JSON解析成DataTable,只限DataGrid标准的JSON数据 /// 例如:Json={\"rows\":[{\"code\":\"001\",\"name\":\"Name 1\"},{\"code\":\"002\",\"name\":\"Name 2\"}]}"; /// </summary> /// <param nam 阅读全文
摘要:
window.onload=function(){ $(document).keydown(function(event){ switch(event.keyCode) { case 13:{} } }) ... 阅读全文
摘要:
js Number 转为 百分比 阅读全文
摘要:
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) { ... 阅读全文
摘要:
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) { ... 阅读全文
摘要:
分割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 > 阅读全文
摘要:
sql 获取一个周的周一和周日 阅读全文