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