当我在寻找可在移动设备上使用的日期选择器时,我发现了一个(通过 stackoverflow:https://stackoverflow.com/a/3023446/2100636)可以与 jQuery 和 ui 主题配合使用。我之所以添加这个作为答案,是因为它植根于功能的概念,因此考虑一下可能会很好。它具有我在其他选择器中没有看到的选项,我认为我可以将它很好地整合到响应式/移动设计中。如果我最终使用它,我会更新我的进度。
从他们的网站http://www.ama3.com/anytime/,下面的描述比我更能概括。它还获得知识共享许可。
首先,请查看以下日期/时间替代方案:
12-hour or 24-hour clock
custom date/time format (countless possibilities, including JSON and XML)
date-only, time-only, or specific fields!
date/time range limits
era-selection (BCE/CE, BC/AD, etc.)
start week on any day (Sunday, Monday, etc.)
custom base for 2-digit years (1900, 2000, etc.)
UTC offsets and time zones
然后看看这些样式选择:
custom labels/languages
custom CSS styles
jQuery UI Theming
jQuery UI Theme Switcher
jQuery ThemeRoller
pop-up or always-present picker
visible or hidden field
它也是程序员友好的:
easy to implement
easy AJAX validation
easy Date/String conversion, including JSON and XML
create multiple pickers at once
easy removal
easy to extend
我们不要忘记那些可用性功能:
single-click value selection
double-click select-and-dismiss
WAI-ARIA 1.0 keyboard accessibility
em-based relative-size