2pv-flatpickr 中文文档教程
flatpickr - javascript datetime picker
Preamble
几乎每个大型 SPA 或项目都涉及日期和时间输入. 但是,如果您还希望保持项目精简并因此远离繁重的框架,例如 jQuery,甚至是 Bootstrap。
对我必须加载 300kb 的 jquery 和 jquery UI 或连接 bootstrap 才能使用日历这一事实感到震惊,我创建了这个功能强大、易于使用且开箱即用的 [date][time]picker。
用 vanilla javascript 编写,适用于任何地方。
Compatibility
IE9+, iOS Safari 6+, MS Edge, Chrome 8+、Firefox 6+
Install & Use
演示和文档:https
://chmln.github.io/flatpickr另见:
Supporting flatpickr
特别感谢
flatpickr - javascript datetime picker
Preamble
Almost every large SPA or project involves date and time input. There are limited options, however, if you also prefer to keep your projects lean and consequently stay away from heavy frameworks such as jQuery, or even Bootstrap.
Appalled at the fact that I have to load 300kb of jquery and jquery UI or hook up bootstrap just to use a calendar, I created this [date][time]picker that's powerful, easy to use, and looks good out of the box.
Written in vanilla javascript, works with anything, anywhere.
Compatibility
IE9+, iOS Safari 6+, MS Edge, Chrome 8+, Firefox 6+
Install & Use
Demos and documentation: https://chmln.github.io/flatpickr
See also:
Supporting flatpickr
Special thanks to support by: