您的位置:首页 > 产品设计 > UI/UE

easyui--calendar日历组件

2015-12-04 13:16 573 查看








$('#box').calendar({
width:200,
height:200,
//fit:true,
border:true,
firstDay:0,
weeks:['S','M','T','W','T','W','S'],
months:['jan','feb','mar','apr','may','jun','jul','aug','sep','oct','nov','dec'],
//year:2015,
//month:11,
current: new Date(2014,7,1),
formatter:function(date){
return '#'+date.getDate();
},
styler:function(date){
if(date.getDay()==1){
return 'background-color:#ccc';
}
},
onSelect:function(date){
alert(date.getFullYear()+":"+(date.getMonth()+1)+":"+date.getDate());
},

});
$('#box').calendar('moveTo',new Date(2015,1,1));
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  easyui