jquery比较时间的大小
jQuery #时间2012-07-13 14:00
var getid = $(this).find(".Time").attr("id");
var starttime = getid.split(',');
var a = new Date("01/10/2012 12:00");
var b = new Date("01/10/2012 18:00");
var c = new Date("01/10/2012" + " " + starttime[0]);
if (getchecked3 == true) {
if ((a <= c) && (c <= b)) {
$(this).css({ "display": "block" });
}new Date();()里的格式必须为01/10/2012 12:00 ,所以添加相同的日期。
相关文章
- jquery实现table隔行变色 2012/07/12
- jquery获取父元素 2012/07/12
- jquery获取指定元素下的子元素 2012/07/12
- jQuery中如何重置(reset)表单 2012/07/10
- jquery获取select标签的值和文本的方法 2012/07/10
- jquery插件cookies的使用 2012/07/10
- jquery实现分页的例子 2012/07/03
- jquery实现的Tabs切换 2012/07/03
- jQuery实现号码抽奖 2012/06/29
- jQuery基础小记录 2012/06/28