【发布时间】:2011-10-12 20:55:35
【问题描述】:
我在我的 Webview 和 Jquery Mobile 中使用以下代码,这在模拟器 (2.2) 和我的 Nexus 上运行良好,但一些用户抱怨当他们点击链接时收到错误消息“问题带有文件:未找到请求的文件”。一位用户报告说她正在使用带有“2.2.1”的三星 Fascinate。这似乎是在我升级 jquery mobile 1.0b2 时开始的,我尝试了最新的 1.0rc 但仍然有同样的问题
对可能发生的事情有任何见解吗?
在我的活动中
engine.loadUrl("file:///android_asset/book2/www/newindex.html");
在html中(我也试过data-ajax="false")
<link rel="stylesheet" href="jquery/jquery.mobile-1.0rc1.min.css" />
<script type="text/javascript" src="jquery/jquery.mobile-1.0rc1.min.js"></script>
<div data-role="page" id="jqm-home">
<div data-role="content" data-theme="e">
<div class="content-primary">
<nav>
<ul data-role="listview" data-inset="true" data-theme="e" data-dividertheme="d" >
<li data-role="list-divider">Cognitive</li>
<li><a rel="external" href="./cogn/simon2.html">
<img src="cogn/simon.jpg" />
<h3>Simon says</h3>
<p>Memory</p>
</a></li>
【问题讨论】:
标签: android webview jquery-mobile