小编Awa*_*han的帖子

html5要求验证在浏览器上运行良好,但不是phonegap应用程序

我正在开发一个关于phonegap(v 5.1.1)的应用程序,并使用phonegap app在android上进行本地测试.我在html中创建了一个表单,为了验证目的,我使用了必需的属性.在浏览器(firefox,chrome)中它运行正常,而在移动设备上它不会验证任何内容.并提交.为什么会这样?Android上是否支持html5.

 <form id="LoginForm" action="">
   <input type="email" name="email" id="inputEmail3" placeholder="Email" required>
   <input type="password" name="pwd" id="inputPassword3" placeholder="Password" required>
   <button type="submit">Sign in</button>
   </form>
Run Code Online (Sandbox Code Playgroud)

谢谢.

javascript html5 android cordova

8
推荐指数
1
解决办法
1274
查看次数

标签 统计

android ×1

cordova ×1

html5 ×1

javascript ×1