【发布时间】:2012-10-19 17:00:00
【问题描述】:
无法激活元素<input type="date" />。
当我点击模拟器上的字段时,它不会显示进入日期,而是显示 android 键盘。
【问题讨论】:
标签: android html date cordova trigger.io
无法激活元素<input type="date" />。
当我点击模拟器上的字段时,它不会显示进入日期,而是显示 android 键盘。
【问题讨论】:
标签: android html date cordova trigger.io
看看这里:How to make the HTML5 input type 'date' trigger the native datepicker on Android?
mobiscroll.com 提供了一个不错的 polyfill。
【讨论】:
看看这个:http://www.quirksmode.org/html5/inputs_mobile.html
它会告诉您哪些 html5 输入类型和属性适用于每个浏览器。对于大多数 Android,日期选择器似乎不起作用,因此它会显示为简单的文本输入。
【讨论】:
您可以使用 Trigger.io's UI module 来使用带有常规 HTML5 输入的原生 Android 日期/时间选择器。但是,这样做确实需要使用整体框架(因此不能作为常规的移动网页使用)。
你可以在这篇博文中看到之前和之后的截图: http://trigger.io/cross-platform-application-development-blog/2012/11/16/new-feature-roundup-native-date-time-picker-analytics-with-flurry-android-events/
【讨论】: