ionic
命令
-
安装cordova和ionic
npm install -g cordova ionic
-
创建项目
ionic start myApp blank
ionic start myApp tabs
ionic start myApp sidemenu
ionic platform add android(vs build时会自动添加)
visual studio 开发
File>New>Project From Existing Code
errors
-
keyboard plugin not found
-
Application Error - The connection to the server was unsuccessful. (file:///android_asset/www/index.html)
index.html 加载时间过长造成
解决#:
- 更新phonegap
- super.setIntegerProperty("loadUrlTimeoutValue",10000);
- 创建个空白index.html 用window.location="./xxx.html"载入当前页 -
ECONNREFUSED
{
"code": "ECONNREFUSED",
"errno": "ECONNREFUSED",
"syscall": "connect"
}
把ripple的Cross Domain Proxy改为local