您好我已經在PhoneGap中創建了一個hello世界類型的應用程序。我在www
目錄中有index.html,但它顯示的是phonegap的默認主頁。請參閱總是顯示的附件截圖。爲什麼phonegap應用程序總是在覆蓋後顯示自己的默認頁面index.html
的index.html
<html>
<head>
<meta charset="utf-8" />
<meta name="format-detection" content="telephone=no" />
<meta name="msapplication-tap-highlight" content="no" />
<!-- WARNING: for iOS 7, remove the width=device-width and height=device-height attributes. See https://issues.apache.org/jira/browse/CB-4323 -->
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
<link rel="stylesheet" type="text/css" href="css/index.css" />
<title>Hello World</title>
</head>
<body>
<script type="text/javascript" src="cordova.js"></script>
<script type="text/javascript" src="js/index.js"></script>
<script type="text/javascript">
app.initialize();
</script>
<form>
Select your favourite color: <input type="color" name="favcolor">
<br/>
<input type="button" value="SUBMIT" />
</form>
</body>
</html>
但是當我運行在Android手機應用程序總是顯示這一點。我已經完成了3-4重建完成的項目,但仍然一樣。
我不確定發生了什麼問題或缺失。
在此先感謝。
嘗試手動更改在添加的平臺中構建之前的www文件夾內容,然後採取構建並查看它是否工作。 – 2014-11-08 18:40:09
@ ashfaq.p是的,我也在問題中更改了上傳的代碼。 – 2014-11-08 18:44:05