Cordova
2015-07-23 19:19
225 查看
Apache Cordova is a set of device APIs that allow a mobile app developer to access native device function such as the camera or accelerometer from JavaScript. Combined with a UI framework such as jQuery Mobile or Dojo Mobile or Sencha Touch, this allows a smartphone app to be developed with just HTML, CSS, and JavaScript.
When using the Cordova APIs, an app can be built without any native code (Java, Objective-C, etc) from the app developer. Instead, web technologies are used, and they are hosted in the app itself locally (generally not on a remote http server).
And because these JavaScript APIs are consistent across multiple device platforms and built on web standards, the app should be portable to other device platforms with minimal to no changes.
Apps using Cordova are still packaged as apps using the platform SDKs, and can be made available for installation from each device's app store.
Cordova provides a set of uniform JavaScript libraries that can be invoked, with device-specific native backing code for those JavaScript libraries. Cordova is available for the following platforms: iOS, Android, Blackberry, Windows Phone, Palm WebOS, Bada, and Symbian.
If you want to use Cordova in your mobile application, take a look at our documentation. It includes Getting Started guides, the JavaScript APIs reference and examples, instructions on Upgrading from previous versions of Cordova, how to write your own Cordova plugin, and more. The selector in the top-right corner of the documentation will let you pick different Cordova versions and language translations. And there is a registry of third-party plugins that can be used in your mobile application.
Apache Cordova graduated in October 2012 as a top level project within the Apache Software Foundation (ASF). Through the ASF, future Cordova development will ensure open stewardship of the project. It will always remain free and open source under the Apache License, Version 2.0.
Some additional information may be found on our Apache project page.
-----------------------------------------------------------
注:安装Xcode and the Xcode Command Line Tools
Download the latest version of Xcode from the Apple developer website or get it using the Mac App Store.
Once you have Xcode installed, open a terminal, run
安装好了测试结果:gcc -v
显示如下:
xcode-select: note: install requested for command line developer tools
apple-1tekiiMac:~ apple-1$ gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.1.0 (clang-602.0.49) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.3.0
Thread model: posix
-----------------------------------------------------------
Ref:http://cordova.apache.org
Ref:http://cordova.apache.org/docs/en/5.0.0/
Ref:http://rensanning.iteye.com/category/305123
Ref:使用Phonegap/Cordova编写跨平台(Android/iOS)应用 (2) -- iOS篇
When using the Cordova APIs, an app can be built without any native code (Java, Objective-C, etc) from the app developer. Instead, web technologies are used, and they are hosted in the app itself locally (generally not on a remote http server).
And because these JavaScript APIs are consistent across multiple device platforms and built on web standards, the app should be portable to other device platforms with minimal to no changes.
Apps using Cordova are still packaged as apps using the platform SDKs, and can be made available for installation from each device's app store.
Cordova provides a set of uniform JavaScript libraries that can be invoked, with device-specific native backing code for those JavaScript libraries. Cordova is available for the following platforms: iOS, Android, Blackberry, Windows Phone, Palm WebOS, Bada, and Symbian.
If you want to use Cordova in your mobile application, take a look at our documentation. It includes Getting Started guides, the JavaScript APIs reference and examples, instructions on Upgrading from previous versions of Cordova, how to write your own Cordova plugin, and more. The selector in the top-right corner of the documentation will let you pick different Cordova versions and language translations. And there is a registry of third-party plugins that can be used in your mobile application.
Apache Cordova graduated in October 2012 as a top level project within the Apache Software Foundation (ASF). Through the ASF, future Cordova development will ensure open stewardship of the project. It will always remain free and open source under the Apache License, Version 2.0.
Some additional information may be found on our Apache project page.
-----------------------------------------------------------
注:安装Xcode and the Xcode Command Line Tools
Download the latest version of Xcode from the Apple developer website or get it using the Mac App Store.
Once you have Xcode installed, open a terminal, run
xcode-select --install, and click the Install button to install the required command line developer tools. Don’t worry if you see a message telling you the software cannot be installed because it is not currently available from the Software Update Server. This usually means you already have the latest version installed. You can also get the command line tools from the Apple developer website.
安装好了测试结果:gcc -v
显示如下:
xcode-select: note: install requested for command line developer tools
apple-1tekiiMac:~ apple-1$ gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.1.0 (clang-602.0.49) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.3.0
Thread model: posix
-----------------------------------------------------------
Ref:http://cordova.apache.org
Ref:http://cordova.apache.org/docs/en/5.0.0/
Ref:http://rensanning.iteye.com/category/305123
Ref:使用Phonegap/Cordova编写跨平台(Android/iOS)应用 (2) -- iOS篇
相关文章推荐
- 终于决定要写博客啦
- json进阶(一)js读取解析JSON类型数据
- pat 1093. Count PAT's (25)
- dom4j utf-8
- 多校第二场 1004 hdu 5303 Delicious Apples(背包+贪心)
- json进阶(一)js读取解析JSON类型数据
- Hdu 2222(AC 自动机)
- 关于虚拟继承和直接继承
- android 自定义View drawable
- C# KTV 系统 SQL数据库连接 C# 应用窗体
- bj java 初学 2015-07-23
- iOS OC07_NSDate
- 2015 Multi-University Training Contest 2 1004 苹果树 dp+单调队列
- 关于Comparable的compareTo的正确写法
- Android环境搭建
- 关于PROFIBUS Master(H)不能正确识别并处理 DP-Slave 回复的RS帧的一些思考
- 使用zip4j加密和解密文件和目录
- 【mongodb系统学习之十】mongodb查询(二)
- Eclipse远程调试(远程服务器端监听)
- leetcode 052 —— N-Queens II