在哪里得到cordova.js [英] Where get the cordova.js

查看:201
本文介绍了在哪里得到cordova.js的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 HTML5 Javascript CSS3 撰写移动应用。
我使用phonegap。

I'm writing a mobile app with HTML5, Javascript and CSS3. I'm using phonegap.

所以如果我使用这样的东西。

So if I use something like this.

document.addEventListener("deviceready", onDeviceReady, false);

function onDeviceReady() {
    document.addEventListener("backbutton", onBackKeyDown, false);
}

function onBackKeyDown() {
    alert("test");
}

我收到此错误:

cordova:您的项目中必须包含cordova.js才能触发事件。

我使用 Ripple 模拟智能手机。和它的权利。我没有在我的项目文件夹中的 cordova.js ,因为我不知道在哪里我得到它...
我已经下载最新的版本2.9。 0的 phonegap ,并使用专门的cordova-mobile-spec。
并且没有 cordova.js 只是一个 cordova-incl.js ...
Hope u可以帮助我。

I'm using Ripple to emulate a smartphone. And its right. I dont have the cordova.js in my project folder, because i dont know where i get it ?!... I have downloaded the newest version 2.9.0 of phonegap and using specially cordova-mobile-spec. And there is not a cordova.js just a cordova-incl.js... Hope u can help me.

推荐答案

检查新项目创建的 cordova.js 使用命令行)

Check the cordova.js inside the new project created (by using command line)

在下载的CORDOVA ZIP文件中检查您的LIB文件

CHECK YOUR LIB FOLDE INSIDE THE DOWNLOADED CORDOVA ZIP FILE

>

>

FOR IOS CHECK cordovalib 文件夹

FOR IOS CHECK cordovalib folder

ANDROID

请检查每个平台的libs文件夹。

Please check libs folder of each platform.

这篇关于在哪里得到cordova.js的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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