Properties Following the first object, the class also accepts an optional second object that may contain any of the following properties to help customize Calendar to your website: * blocked - An array of blocked (disabled) dates in the following fo
最近看了一下关于js日期的一些函数,突然想到了日历控件,于是试着写了一个,作为后台程序员的我水平有限,大家抱着学习的态度看看我写的这个例子吧,一起学习进步!
首先一个常用的日期函数:
Date(year,month,day)
var date=new Date();
获取年份
var year=this.date.getFullYear();
获取月份,这里是月索引所以要+1
var month=this.date.getMonth()+1;
获取当天是几号
var d