【发布时间】:2016-06-16 16:29:20
【问题描述】:
我正在尝试借助 webview 的 loadUrl("http://xyc.com/login.html") 在 webview 中加载 login.html html 页面具有以下标签
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Hello </title>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<!--CSS linking -->
<link rel="stylesheet" href="assets/css/jquery.mobile-1.4.2.css" />
<link rel="stylesheet" href="assets/css/jquery-ui.css">
<link rel="stylesheet" href="assets/css/custom.css" />
</head>
<body>
<!-- jquery DOM element goes here-->
</body>
<!--Javascript linking -->
<script src="assets/js/jquery-1.9.1.js"></script>
<script src="assets/js/jquery-ui.js"></script>
<script src="assets/js/jquery.mobile-1.4.2.js"></script>
</html>
jQuery mobile 中的方法无法始终如一地工作,我想知道是因为在 html 页面中加载 jquery 和 jquery-mobie 插件时的时间问题还是 Android 4.3 webview 中的错误。它只发生在 Adroid 4.2 & 4.3 webview 中。 Android logcat 显示以下错误
E/Web Console﹕ Uncaught TypeError: Object #<Object> has no method 'remove':12079
E/Web Console﹕ Uncaught TypeError: Object #<Object> has no method 'not':740
E/Web Console﹕ Uncaught TypeError: Object #<Object> has no method 'children':528
【问题讨论】:
标签: android jquery html jquery-mobile webview