用 $.fn.calendar.defaults 重写了 defaults。

用法
<div id=”cc” style=”width:180px;height:180px;”></div>
$(‘#cc’).calendar({
width:600,
height:600,
current:new Date()
});
特性
名称 | 类型 | 说明 | 默认值 |
width | number | 日历组件的宽度。 | 180 |
height | number | 日历组件的高度。 | 180 |
fit | boolean | true 时设置日历的尺寸以适应它的父容器。 | false |
border | boolean | 定义是否显示边框。 | true |
weeks | array | 显示星期的日历。 | [‘S’,’M’,’T’,’W’,’T’,’F’,’S’] |
months | array | 显示月份的列表。 | [‘Jan’, ‘Feb’, ‘Mar’, ‘Apr’, ‘May’, ‘Jun’, ‘Jul’, ‘Aug’, ‘Sep’, ‘Oct’, ‘Nov’, ‘Dec’] |
year |
相关文章
大家在看
|










