简体   繁体   English

HTML 5输入类型时间在Android上不起作用

[英]HTML 5 input type Time not working on android

I am working on a hybrid mobile application. 我正在研究混合移动应用程序。 Using ionic 2 framework. 使用ionic 2框架。 HTML5 input type time showing unusual behavior. HTML5输入类型的时间显示异常行为。 When i am setting 12 hour format value to input tag time is continuously displayed in 24 hour format. 当我将12小时格式值设置为输入标签时间时,将以24小时格式连续显示。 Working fine on google chrome browser and IOS Devices. 在谷歌浏览器和IOS设备上正常工作。 But not working on Android Devices. 但不适用于Android设备。

Look at the following page: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/time 请看以下页面: https : //developer.mozilla.org/zh-CN/docs/Web/HTML/Element/input/time

One thing to note is that the displayed time format may differ from the actual value — the displayed time format will be chosen based on the set locale of the user's operating system, whereas the date value is always formatted hh:mm. 需要注意的一件事是,显示的时间格式可能与实际值不同-显示的时间格式将根据用户操作系统的设置区域设置进行选择,而日期值则始终设置为hh:mm。 When the above value submitted to the server, for example, some browsers display it as 13:30, some display it as 1.30 PM, but the submitted value will always look like appt-time=13%3A30. 例如,当上述值提交给服务器时,某些浏览器将其显示为13:30,某些浏览器将其显示为1.30 PM,但是提交的值将始终像appt-time = 13%3A30。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM