嗨,我已经在PhoneGap中创建了一个hello world类型的应用程序.我在www目录中有index.html,但它显示的是phonegap的默认主页.请参阅随附的屏幕截图,它始终显示.
的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文件夹进行更改.
尝试在项目的根文件夹中存在的www文件夹中进行更改,然后进行构建,它肯定会起作用.
检查一下:
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。