我已经问了很多天了,我想这现在正在排队,所以我再次发布这个请告诉我任何人都可以帮助我
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>
但它在浏览器中运行良好。
问题是当我尝试在手机中打开它时出现错误。我正在使用 Dreamweaver CS6 并在https://build.phonegap.com/中构建它