05 2011 档案

摘要:var str="36,35,26,41,42,36,36,35,41,25,26,";var ret = [];var re = str.split(',');str.replace(/[^,]+/g, function($0, $1) { (str.indexOf($0) == $1) && ret.push($0)})alert(ret) 阅读全文
posted @ 2011-05-19 15:35 HTL 阅读(2592) 评论(1) 推荐(0) 编辑
摘要:FF中对2010-12-20这种时间的转换格式始终返回Nan解决办法:将-替换成/Date.parse('2010-12-20‘.replace(/[-]/g,'/')) 阅读全文
posted @ 2011-05-18 19:07 HTL 阅读(526) 评论(0) 推荐(0) 编辑
摘要:Date.prototype.format = function(format){ var args = { "M+" : this.getMonth() + 1, "d+" : this.getDate(), "h+" : this.getHours(), "m+" : this.getMinutes(), "s+" : this.getSeconds(), "q+" : Math.floor((this.getMonth() + 3) / 3), //quarter &q 阅读全文
posted @ 2011-05-17 19:09 HTL 阅读(3065) 评论(0) 推荐(0) 编辑
摘要:using System;using System.Collections.Generic;using System.Windows.Forms;using System.Text;namespace Common{ /// <summary> /// 窗体的单例模式 /// </summary> /// <typeparam name="T"></typeparam> public class FormSingle<T> where T : Form, new() { private static T form; 阅读全文
posted @ 2011-05-09 12:22 HTL 阅读(1122) 评论(0) 推荐(0) 编辑

htl
点击右上角即可分享
微信分享提示