六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 657|回复: 0

学习ionic

[复制链接]
 楼主| 发表于 2015-12-12 16:02:14 | 显示全部楼层 |阅读模式
学习ionic
安装ionic/Install Ionic        首先您需要安装 Node.js. 其次, 安装最新版本的cordova 和 ionic command-line tools. 通过参考AndroidiOS 官方文档来安装.
npm install -g cordova ionic

通过Ionic创建一个项目使用Ionic官方提供的现成的应用程序模板,或一个空白的项目创建一个Ionic应用。(          Create an Ionic project using one of our ready-made app templates, or a blank one to start          fresh.)
ionic start myApp tabs
        $ ionic start myApp blank


$ ionic start myApp tabs

$ ionic start myApp sidemenu


运行我们刚才创建的Ionic项目           使用Ionic tool 创建 ,测试,运行你的apps(或者通过Cordova直接创建),如果要创建android应用,把右侧创建代码中的ios改为android ( Use the Ionic tool to build, test, and run your apps (or use Cordova directly). Make sure to substitute ios with android to build for Android.)        
          Then, try Ionic View to share your apps with testers and clients,          or to easily test on new devices.

         $ cd myApp
$ ionic platform add ios$ ionic build ios$ ionic emulate ios
http://www.ionic.wang/start-index.html

学习ionic
该会员没有填写今日想说内容.
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表