Where do I find cordova.js?(我在哪里可以找到 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,才能触发事件.
cordova : You must have cordova.js included in your projects, to be able to trigger events.
我正在使用 Ripple 来模拟智能手机.它是正确的.我的项目文件夹中没有 cordova.js
,因为我不知道从哪里得到它.我已经下载了 phonegap 的最新版本 2.9.0,并特别使用了 cordova-mobile-spec.
I'm using Ripple to emulate a smartphone. And its right. I don't have cordova.js
in my project folder, because I don't know where i get it.
I have downloaded the newest version 2.9.0 of phonegap and using specially cordova-mobile-spec.
没有 cordova.js
,只有 cordova-incl.js
.如何获取此文件?
There is no cordova.js
just a cordova-incl.js
. How do I obtain this file?
推荐答案
检查新建项目中的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
对于 IOS 检查 cordovalib 文件夹
FOR IOS CHECK cordovalib folder
安卓
请检查每个平台的 libs 文件夹.
Please check libs folder of each platform.
这篇关于我在哪里可以找到 cordova.js?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:我在哪里可以找到 cordova.js?


- 为什么我的页面无法在 Github 上加载? 2022-01-01
- 如何调试 CSS/Javascript 悬停问题 2022-01-01
- 为什么悬停在委托事件处理程序中不起作用? 2022-01-01
- 在不使用循环的情况下查找数字数组中的一项 2022-01-01
- 如何向 ipc 渲染器发送添加回调 2022-01-01
- 从原点悬停时触发 translateY() 2022-01-01
- 我不能使用 json 使用 react 向我的 web api 发出 Post 请求 2022-01-01
- 如何显示带有换行符的文本标签? 2022-01-01
- 使用 iframe URL 的 jQuery UI 对话框 2022-01-01
- 是否可以将标志传递给 Gulp 以使其以不同的方式 2022-01-01