为什么PhoneGap的应用程序始终显示改写后的index.html自己的默认页面 [英] Why phonegap application always shows own default page after override index.html

查看:536
本文介绍了为什么PhoneGap的应用程序始终显示改写后的index.html自己的默认页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我已经在做的PhoneGap应用的一个Hello World类型。我的index.html的 WWW 目录,但它显示的PhoneGap的一些默认主页。请看到它总是显示连接的截图。

Hi I have made a hello world type of application in PhoneGap. I have index.html in www directory but it is displaying something default home page of phonegap. Please see attached screenshot that it is displaying always.

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重建完整的工程,但仍然相同。

But when I run the app in android phone it always display this. I have done 3-4 rebuild complete project but still same.

我不知道是怎么回事错或丢失。

I am not sure what is going wrong or missing.

在此先感谢。

推荐答案

我觉得你正在改变WWW文件夹present内部的平台增加。 尝试进行更改,这是present在项目的根目录下的WWW文件夹,然后拿一个构建,它肯定会工作。 检查:

I think you are making changes to www folder present inside the platforms added. Try to make changes in the www folder which is present in the root folder of your project and then take a build and it will definitely work. Check This:

这篇关于为什么PhoneGap的应用程序始终显示改写后的index.html自己的默认页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆