我想调试我的phonegap应用程序。当我尝试在我的模拟器上打开我的应用程序时,出现错误,提示我使用phonegap构建,因此我没有任何本机代码。奇怪的是我只加载本地资源,所以我不明白为什么我会得到一个超时。我的index.html如下所示:phonegap:超时错误调用webviewclient
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width" />
<title>Mængderabat - spar mere</title>
<script src="http://debug.phonegap.com/target/target-script-min.js#maengderabat"></script>
<script src="phonegap.js" charset="utf-8"></script>
<script src="assets/js/jquery-1.5.2.min.js"></script>
<script src="assets/js/jquery.mobile.js"></script>
<script src="assets/js/jquery.jfeed.pack.js"></script>
<link rel="stylesheet" href="assets/css/jquery.mobile.css" />
<style>
.ui-li-icon{width:16px;height:16px;}
</style>
</head>
<body >
<!-- begin first page -->
<section id="main" data-role="page" data-theme="b">
<header data-role="header">
<h1>Mængderabat - spar mere</h1>
</header>
<div data-role="content" class="content">
<ul id="list" data-role="listview" data-inset="true">
</ul>
</div>
<footer data-role="footer">
<h2>example by Oikos Development</h2>
</footer>
</section>
<!-- end first page -->
</body>
</html>
感谢您的回答。 JQuery的路径是由我定义的,它是正确的。调试很好,不幸的是,这也不是导致问题的原因。这可能是与手机构建更加微妙相关的东西。我可能需要更彻底地查看文档,看看我是否漏掉了应用程序的设置。尽管感谢您的回答。 – Jakob 2012-02-07 20:42:23
您可能更愿意从PhoneGap Build的帮助中询问getsatisfaction:http://community.phonegap.com/nitobi/products/nitobi_phonegap_build?from_gsfn=true – 2012-02-08 14:05:03
谢谢Simon - 我不知道这个社区。您是否愿意改变您对该社群的参考答案,以便我可以接受这个答案,还是反对SO政策? – Jakob 2012-02-08 16:12:39