0
我问这个了很多天前,我觉得这是现在去排队,所以我张贴这一次,请告诉我,任何一个能帮助我PhoneGap的错误的PhoneGap +本地
ERROR the connection to the server was unsuccessful. (file ///android_asset/www/index.html) pure phonegap app
代码如下:
<html>
<head>
<link rel="stylesheet" href="jquery-mobile/jquery.mobile.css">
<link rel="stylesheet" href="jquery-mobile/jqm-docs.css">
<script src="jquery-mobile/jquery.js"></script>
<script>
$(document).bind("mobileinit", function(){
$.mobile.loadingMessageTextVisible = true;
});
</script>
<script src="jquery-mobile/jquery_mobile_old.js"></script>
<script>
$(document).on("click", ".show-page-loading-msg", function() {
var $this = $(this),
theme = $this.jqmData("theme") || $.mobile.loadingMessageTheme,
msgText = $this.jqmData("msgtext") || $.mobile.loadingMessage,
textonly = !!$this.jqmData("textonly");
$.mobile.showPageLoadingMsg(theme, msgText, textonly);
})
.on("click", ".hide-page-loading-msg", function() {
$.mobile.hidePageLoadingMsg();
});
</script>
</head>
<body>
<div data-role="header"><h1>My App</h1></div>
<a href="http://xyz.php" style="text-decoration:none">
<button class="show-page-loading-msg">xyz</button>
</a> <a href="http://xyz.php" style="text-decoration:none">
<button class="show-page-loading-msg">xyz</button>
</a> <a href="http://xyz.php" style="text-decoration:none">
<button class="show-page-loading-msg">xyz</button>
</a> <a href="http://xyz.php" style="text-decoration:none">
<button class="show-page-loading-msg">xyz</button>
</a> <a href="http://xyz.php" style="text-decoration:none">
<button class="show-page-loading-msg">xyz</button>
</a> <a href="http://xyz.php" style="text-decoration:none">
<button class="show-page-loading-msg">xyz</button>
</a> <a href="http://xyz.php" style="text-decoration:none">
<button class="show-page-loading-msg">xyz</button>
</a> <a href="#" style="text-decoration:none">
<button class="show-page-loading-msg">Outstanding Analysis For Creditors</button>
</a>
但它是在浏览器中正常使用。
问题是,当我试图在手机打开这个它给error.I正在使用Dreamweaver CS6和使用build.phonegap.com建设时,它https://build.phonegap.com/
这是我的index.html页面,我没有使用任何.java文件。 – user1635431
我以前从未使用过build.phonegap.com。但出于好奇,我看了一下。它似乎是使用该应用程序的唯一问题是,如果通过zip文件或使用存储库上传的代码是,如果文件夹结构不正确。 – Dilberted
文件夹结构是否可以,如果在此页面中输入'
你好'并删除所有js文件,那么页面正在正常加载到手机中。 – user1635431