为什么phonegap应用程序在覆盖index.html后总是显示自己的默认页面

N S*_*rma 1 html android cordova

嗨,我已经在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>
Run Code Online (Sandbox Code Playgroud)

但是,当我在Android手机中运行应用程序时,它总是显示这个.我已完成3-4重建完成项目但仍然相同.

我不确定出了什么问题或遗失了.

提前致谢.

在此输入图像描述

ash*_*q.p 5

我认为你正在对添加的平台内的www文件夹进行更改.尝试在项目的根文件夹中存在的www文件夹中进行更改,然后进行构建,它肯定会起作用.检查一下:在此输入图像描述