日历组件WdatePicker
日历组件 ?WdatePicker
文献:http://www.my97.net/dp/demo/index.htm
支持:IE 6.0+ , Firefox 2.0+ , Chrome, Opera 9.5+ , Safari 3.0+
js文件定义:
$('.icon-date').on('click', function () {
new WdatePicker({
??? dateFmt: 'yyyy年MM月dd日',
??? el: 'scfx_date',
??? maxDate: yeatoday,
??? startDate: yeatoday,
??? position: {left: -20, top: 5},
??? onpicking: function (dp) {
?$('.leftMenu li:first').trigger('click');
??? }
})
});
?
HTML页面双日历:
<input? id="startDate" type="text" onFocus="var endDate=$dp.$('endDate');WdatePicker({onpicked:function(){endDate.focus();},maxDate:'#F{$dp.$D(\'endDate\')}'})"/> 到
<input? id="endDate" type="text" onFocus="WdatePicker({minDate:'#F{$dp.$D(\'startDate\')}'})"/>