Ionic 3 自定义组件的使用时间:2023-03-09 19:28:44 1. 创建组件 ionic g component myComponent myComponent为组件名称 创建好后,生成的文件如下图 2. 在Page 中使用 使用的是home 在home.html加入 <ion-content padding> <my></my> </ion-content> 2.1 在home.module.ts中加入Components 2.2 或者在home.module.ts 的declarations中加入MyComponent