Software Archive
Read-only legacy content
17061 Discussions

新建一个Project Type为HTML5+Cordova的项目,build For Win8,在win8上能安装成功,打开时进入splan页后直接退出

meiyu_l_
Beginner
885 Views

<!DOCTYPE html>
<html>
<!--
  * Please see the included README.md file for license terms and conditions.
  -->
<head>
    <title>Blank Cordova Mobile App Project Template (Lite)</title>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8">

    <!-- see http://webdesign.tutsplus.com/tutorials/htmlcss-tutorials/quick-tip-dont-forget-the-viewport-meta-tag -->
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <style>
        /* following two viewport lines are equivalent to the meta viewport statement above, needed for Windows */
        /* see http://www.quirksmode.org/blog/archives/2014/05/html5_dev_conf.html and http://dev.w3.org/csswg/css-device-adapt/ */
        @-ms-viewport { width: 100vw ; zoom: 100% ; }  @viewport { width: 100vw ; zoom: 100% ; }
        @-ms-viewport { user-zoom: fixed ; }           @viewport { user-zoom: fixed ; }
    </style>

    <script src="cordova.js"></script>          <!-- phantom library, needed for Cordova api calls, added during build -->
    <script src="js/app.js"></script>           <!-- recommended location of your JavaScript code relative to other JS files -->
    <script src="xdk/init-dev.js"></script>     <!-- normalizes device and document ready events, see README for details -->
    <script>documnet.write("hello workd!");</script>
</head>

<body>

    <p> what is Cordova!  </p>
     <script>documnet.write("hello workd!");</script>
    <br/>
    <ul>
        <li>aaa</li>
        <li>bbb</li>
        <li>ccc</li>
    </ul>
    <script>
      var a=10;
      var b=20;
       var s= a+b;
       document.write(s);
    </script>
    <script>
       function demo(a,b)
        {
            var sum = a+b;
            return sum;
        }
        var v1 = demo(20,20);
        document.write(v1);
    </script>

</body>
</html>

0 Kudos
1 Solution
Amrita_C_Intel
Employee
885 Views

Hello Mieyu,

I can infer his:

created a project whose project type is HTML5+Cordova,

build for win8,

and can be successfully installed on WIN8,

after opening it, enter splan page and then quit directly

Correct me if I misunderstood.

Can you give more details about what you are trying to accomplish? 

And if you can send zip file of your entire project it will be great.

View solution in original post

0 Kudos
4 Replies
Anusha_M_Intel1
Employee
885 Views

Sorry, google translate isn't doing a good job of translating your post. Could you post in English if possible?

All I got was that you created a blank HTML5+Cordova Project and built successfully for Windows.

 

很抱歉,谷歌翻译是不是做你的翻译后的一个好工作。你可以在英语,如果可能的发布?

我得到的是,你创建一个空白的HTML5 +科尔多瓦项目,并成功地为Windows内置。
0 Kudos
Amrita_C_Intel
Employee
886 Views

Hello Mieyu,

I can infer his:

created a project whose project type is HTML5+Cordova,

build for win8,

and can be successfully installed on WIN8,

after opening it, enter splan page and then quit directly

Correct me if I misunderstood.

Can you give more details about what you are trying to accomplish? 

And if you can send zip file of your entire project it will be great.

0 Kudos
meiyu_l_
Beginner
885 Views

the zip file is upload

0 Kudos
Anusha_M_Intel1
Employee
885 Views

Hi Meiyu, 

We have a HTML5 Chinese forum :) https://software.intel.com/en-us/forum/41158. Please post there is possible. It could be that your app is not waiting for the device API libraries to load. Your web app may potentially be trying to call a Cordova JavaScript function before the corresponding native code becomes available.

https://cordova.apache.org/docs/en/4.0.0/cordova_events_events.md.html#deviceready

你好梅雨,

我们有一个HTML5中国论坛:) https://software.intel.com/en-us/forum/41158 。请张贴有可能的。这可能是您的应用程序不等待设备API库加载。你的web应用程序可能会被试图调用科尔多瓦JavaScript函数对应的本地代码可用之前。

https://cordova.apache.org/docs/en/4.0.0/cordova_events_events.md.html#deviceready
0 Kudos
Reply