import { Component } from '@angular/core';
import { NavController , LoadingController } from 'ionic-angular';
@Component({
selector: 'page-contact',
templateUrl: 'contact.html'
})
export class ContactPage {
constructor(public NavCtrl:NavController,public LoadCtrl:LoadingController) {
this.user = {};
this.user.username = "";
this.user.password = "";
this.NavCtrl = NavCtrl;
}
showFill(){
let loading = this.LoadCtrl.create({
content:"...",
duration:3000
});
loading.present();
setTimeout(()=>{
loading.dismiss();
},3000);
}
}这样写有什么错误吗?
1160124424
sdwsq
johnwei0912
相关分类