使用ionic3创建第一个App

未结帖
0 682
ajian admin_jim 2017-11-17
悬赏:5飞吻

使用ionic3创建第一个App

一、创建项目

在指定的路径生成一个新的Ionic项目

$ ionic start MyFirstProject tutorial

    tabs ............... ionic-angular A starting project with a simple tabbed interface(带选项卡的界面)

    blank .............. ionic-angular A blank starter project(空界面)

    sidemenu ........... ionic-angular A starting project with a side menu with navigation in the content area

    super .............. ionic-angular A starting project complete with pre-built pages, providers and best practices for Ionic development.

    conference ......... ionic-angular A project that demonstrates a realworld application

    tutorial ........... ionic-angular A tutorial based project that goes along with the Ionic documentation

    aws ................ ionic-angular AWS Mobile Hub Starter

二、创建页面

$ ionic g page mypage

Create app/pages/my-page/my-page.html 

Create app/pages/my-page/my-page.ts 

Create app/pages/my-page/my-page.scss

三、创建页面为开发测试启动一个本地开发服务器

$ ionic serve

四、添加platform

$ ionic cordova platform add android/ios

五、生成应用

$ ionic cordova build android/ios



热忱回答0


最近热帖

近期热议

  1. javascript——prototype与__proto 9
  2. Mysql 中出现的Data truncated for column 3
  3. 在nginx中使用x-sendfile的解决方案 3
  4. 高版本jQuery面插件实现Ajax上传图片 1
  5. Thinkphp Socket.class.php 类的使用 1
  6. 使用ionic3创建第一个App 0
  7. ios-oc html5 0
  8. nginx.conf 0
  9. 基于ionic3.4.0的项目搭建 0
  10. php 缩略图 0