摘要: //格式化字符串为日期格式function formatDate(date){ return new Date(Date.parse(date.replace(/-/g, "/")));}//输出比较结果alert(formatDate2("2013-10-19 17:00:00")>formatDate2("2013-10-19 18:30:00")); 阅读全文
posted @ 2013-10-19 16:44 求知若渴,虚怀若愚 阅读(190) 评论(0) 推荐(0) 编辑
摘要: /* 锚点跳转 */function anchor(p,fn) { $("html,body").animate({ scrollTop: $("#" + p + "").offset().top }, 1000,fn);} 阅读全文
posted @ 2013-10-19 09:13 求知若渴,虚怀若愚 阅读(297) 评论(0) 推荐(0) 编辑
原来是这样!我和我的小伙伴都惊呆了!