β

ionic应用切换触发更新

XX到此一游 6 阅读

ionic文档:http://ionicframework.com/docs/api/platform/Platform/


ionViewDidLoad() {
this.platform.ready().then(() => {
this.platform.pause.subscribe(() => {
this.connectState = ‘disconnected’;
this.connected = false;
this.buttonDisabled = true;
});
this.platform.resume.subscribe(() => {
this.checkConnectivity();
});
}


作者:XX到此一游
助人为快乐之本 有恒为成功之本
原文地址:ionic应用切换触发更新, 感谢原作者分享。

发表评论