1
爲什麼離子平臺需要很長時間才能調用ready函數?爲什麼離子Ionic2平臺準備工作需要很長時間?
請檢查,連接視頻鏈接:https://youtu.be/AWncpv5rIgQ
請提出解決方案..
this.platform.ready().then(() => {
// Okay, so the platform is ready and our plugins are available.
// Here you can do any higher level native things you might need.
alert(1);
if(this.splashScreen) {
alert(2);
setTimeout(() => {
alert(3);
this.splashScreen.hide();
}, 1000);
}
});
太添加--release到命令本文檔 –