Timepicker Javascript以不正确的方式显示时间
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了Timepicker Javascript以不正确的方式显示时间,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含864字,纯文字阅读大概需要2分钟。
内容图文
![Timepicker Javascript以不正确的方式显示时间](/upload/InfoBanner/zyjiaocheng/788/190f507344d0405ca37b0f071a6c9be4.jpg)
我的HTML中有一个timepicker div标签:
< input class =“timepicker”name =“timepicker”id =“from-timepicker”/>
相应的Javascript代码是:
$('#from-timepicker').timepicker({
timeFormat: 'HH:mm',
// year, month, day and seconds are not important
minTime: new Date(0, 0, 0, 8, 0, 0),
maxTime: new Date(0, 0, 0, 15, 0, 0),
// time entries start being generated at 6AM but the plugin
// shows only those within the [minTime, maxTime] interval
startHour: 6,
// the value of the first item in the dropdown, when the input
// field is empty. This overrides the startHour and startMinute
// options
startTime: new Date(0, 0, 0, 8, 20, 0),
// items in the dropdown are separated by at interval minutes
interval: 10
});
在用户界面上,我将时间视为:
0808:mm
I need it in 08:08 (hh:mm) format.
知道我哪里错了吗?
解决方法:
timepicker格式:’timeFormat’:’h:i’
timepicker.jquery使用php.的时间部分
内容总结
以上是互联网集市为您收集整理的Timepicker Javascript以不正确的方式显示时间全部内容,希望文章能够帮你解决Timepicker Javascript以不正确的方式显示时间所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。