废话少说 直接上代码.... //导入需要用到的命名空间 ViewChild,Content import { Component, ViewChild } from '@angular/core'; import { NavController, ModalController, ToastController, Content } from 'ionic-angular'; @Component({ selector: 'home', templateUrl: 'home.html', })…