基本操作
$cordova platform update android@5.0.0
$ npm install -g cordova ionic
$ ionic start myApp tabs
$ ionic platform add android
$ cordova plugin add cordova-plugin-crosswalk-webview
cordova platform update android
图标
http://ionicons.com/
学习
http://www.runoob.com/ionic/
解决cordova新版本的跨域访问
ionic plugin add cordova-plugin-whitelist
白名单参数如下
https://github.com/apache/cordova-plugin-whitelist
<allow-navigation href="http://172.16.3.12/*" />
ionic 提升性能
使用 Crosswalk WebView 插件,性能加强,但是容量加大,cordova要新的版本才能添加
cordova plugin add cordova-plugin-crosswalk-webview
Crosswalk
https://crosswalk-project.org/documentation/cordova/cordova_4.html
D:Mappintmed>cordova plugin add cordova-plugin-crosswalk-webview Fetching plugin "cordova-plugin-crosswalk-webview" via npm Installing "cordova-plugin-crosswalk-webview" for android Plugin doesn't support this project's cordova-android version. cordova-android: 3.6.4, failed version requirement: >=4 Skipping 'cordova-plugin-crosswalk-webview' for android D:Mappintmed>cordova platform update android@4.1.1 Updating android project... Running command: cmd "/s /c "C:Usersglory.xu.SKY-MOBI.cordovalib pm_cachec ordova-android4.1.1packageinupdate.bat D:Mappintmedplatformsandroid"" Updating minSdkVersion from 10 to 14 in AndroidManifest.xml Android project updated with cordova-android@4.1.1 Running command: "C:Program Files odejs ode.exe" D:Mappintmedhooksafter_p repare 10_add_platform_class.js D:Mappintmed add to body class: platform-android D:Mappintmed>cordova plugin add cordova-plugin-crosswalk-webview Fetching plugin "cordova-plugin-crosswalk-webview" via npm Installing "cordova-plugin-crosswalk-webview" for android The module "ConfigParser" has been factored into "cordova-common". Consider upda te your plugin hooks. The module "xml-helpers" has been factored into "cordova-common". Consider updat e your plugin hooks.