这个日历是去年写的,也写了一篇文章介绍
写了一个简单的日历
预览地址http://raclen.win/demo/12/test-calendar.html
这个是根据项目中的代码,整理改编的,依赖较少
预览一下http://raclen.win/demo/05/home.html
这个日历是根据laydate改编
去掉了[今天,取消,确定,时分秒]等,我认为没啥用的功能
增加了自定义限制不可选日期
voidDate:[{start:'2016-07-01',end:'2016-07-16'},{start:'2016-08-07',end:'2016-09-16'}]
优化了样式
代码可读性强,如果需要增加自定义功能,方便修改源代码
预览地址 http://raclen.win/demo/12/laydate/test/demo1.html
这个算是移动端价格日历,没有什么依赖。需要传一个日期范围
如果无休止的日期选择,就用不上这个了,直接input type=“date”吧
预览地址http://raclen.win/demo/12/index.html
评论
使用 GitHub 账号登录后即可评论