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)
阅读全文
摘要:FF中对2010-12-20这种时间的转换格式始终返回Nan解决办法:将-替换成/Date.parse('2010-12-20‘.replace(/[-]/g,'/'))
阅读全文
摘要: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
阅读全文
摘要: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;
阅读全文