上一页 1 ··· 31 32 33 34 35
摘要: 简单的字符串数组排序就一句话Arr.sort(function(s1,s2){return s1.localeCompare(s2));//升序Arr.sort(function(s1,s2){return -1*s1.localeCompare(s2));//降序但是对应复杂的实例数组就不能这样了... 阅读全文
posted @ 2015-11-06 10:42 zslm___ 阅读(299) 评论(0) 推荐(0)
摘要: 不是原创,只是 借鉴别人的成果,我在此纪念1.htmfunction GetDateT() { var d,s; d = new Date(); s = d.getFullYear() + "-"; ... 阅读全文
posted @ 2015-11-06 10:09 zslm___ 阅读(461) 评论(0) 推荐(0)
摘要: 闭包主要用在回调函数中//另一个例子1.js( function($){ var r=0.9; sum=function(num1,num2) { return (num1+num2)*r; }; } )(jQuery);1.htm我的理解->闭包1.局域变量作用域扩展2.主要用在回调 函数中3... 阅读全文
posted @ 2015-11-02 10:12 zslm___ 阅读(190) 评论(0) 推荐(0)
摘要: 这个仅是为了培训做的一个小例子public class DB { public static string GetClassName(Type type) { if (type == null) throw new ArgumentException("参数type不能为空");else{ if... 阅读全文
posted @ 2015-10-24 16:55 zslm___ 阅读(395) 评论(0) 推荐(0)
摘要: public class List2DataTable { public static string GetClassName(Type type) { if (type == null) throw new ArgumentException("参数type不能为空");if (type.... 阅读全文
posted @ 2015-10-24 16:47 zslm___ 阅读(111) 评论(0) 推荐(0)
上一页 1 ··· 31 32 33 34 35