showFill(){}里面放如下的内容,显示toast
首先
import {NavController,LoadingController,AlertController,ToastController} from 'ionic-angular';
constructor( private toastCtrl: ToastController) {
}
let toast=this.toastCtrl.create({
message:"请填写内容",
duration:3000,
position:"middle"
});
toast.onDidDismiss(() =>{
console.log("has dismissed");
});
toast.present();