1

我编写了一个完整的应用程序,使用 chrome http://localhost:8600 //

当我建立电话差距时,我得到了错误

安卓网::err_file_not_found (file:///android_asset/www/xxxxxx.cfm

所以我想哦,大妈,我搞砸了什么。这是我的第一个应用程序。

所以我想让我们回到基本的。

所以我创建了一个新项目。

我只创建了 2 页 index.cfm 和 test1.cfm

索引.cfm

    <html>

        <head>

        </head>



        <a href="./test1.cfm">test</a>

    </html>

测试1.cfm

<html>

    <head>

    </head>



    <a href="./index.cfm">index</a>

</html>

然后我构建了应用程序。

下载的APK

安装在 samsung note 3 和 samsung note 10.1 上

当我运行应用程序时。我看到我在测试 1 上单击(触摸)的超链接。

然后我收到以下错误然后应用程序关闭

cfbuilder Android net::err_file_not_found (file:///android_asset/www/test1.cfm)

那么我需要从 index.cfm 做什么来加载其他页面一旦构建到 android。

我是不是缺少标签,java。某物。

没有比我能到达这里更多的“回归基本”了

任何帮助都会很棒。度过一个愉快的夜晚

4

1 回答 1

0

好的,经过大量测试,我已经弄清楚了。

任何想要链接到另一个页面的页面都需要以下内容

<cfclientsettings detectdevice="true" enabledeviceapi="true"/>

<cfclient>

    <cfscript>

    </cfscript>

</cfclient>

所以我的页面现在看起来像这样

索引.cfm

<!doctype html>

<cfclientsettings detectdevice="true" enabledeviceapi="true"/>

<cfclient>

    <cfscript>

    </cfscript>

</cfclient>

<html>

    <head>

    </head>



    <a href="./test1.cfm">test 1</a>



</html>

测试1.cfm

<!doctype html>

<cfclientsettings detectdevice="true" enabledeviceapi="true"/>

<cfclient>

    <cfscript>

    </cfscript>

</cfclient>

<html>

    <head>

    </head>



    <a href="./index.cfm">index</a>



    <br><br>

    <a href="./test3.cfm">test3</a>

</html>

我真的希望这对其他人有帮助。

祝你有美好的一天

于 2016-04-02T09:58:21.650 回答