Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
建议我使用任何 JavaScript 来选择日期和时间。
注意:我只想使用一个文件来选择日期和时间。
我已经看到了:
http://www.eyecon.ro/bootstrap-datepicker/
和
http://jdewit.github.com/bootstrap-timepicker/index.html
如果您仍然对选择日期和时间数据的 javascript api 感兴趣,请查看这些项目,它们是 bootstrap datepicker 的分支:
引导日期时间选择器 1
引导日期时间选择器 2
第一个分支是对解析/格式化代码库的重大重构,除了提供所有视图以使用鼠标/触摸选择日期/时间外,它还有一个掩码选项(默认情况下),允许用户快速键入基于日期/时间在预先指定的格式上。