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.
jquery mobile 提供了自己的输入日期和时间的方式,即
<input type = "date" /> <input type = "time" />
这在浏览器和某些手机(android)上运行良好。它使用滑动条调出本机菜单以选择时间和日期。但是,在 android 平板电脑上,它不起作用,输入只是用作任何常规文本输入。
我之前尝试过使用 datepicker 插件,但速度很慢......
有什么办法可以解决这个问题吗?或者有什么有用的、简单的插件我可以使用?
谢谢!
<script> //reset type=date inputs to text $( document ).bind( "mobileinit", function(){ $.mobile.page.prototype.options.degradeInputs.date = true; }); </script>
标记