constructor(platform: Platform, statusBar: StatusBar, splashScreen: SplashScreen) {
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.
statusBar.styleDefault();
splashScreen.hide();
});
}
为什么splashScreen.hide()之后大概要过5-6s才显示页面内容?怎么设置和优化?
ionic-cli新建的项目,直接生成的安装包
ionic cordova build “your platform” --prod
在你打包的命令行后面 加上 --prod