第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

如何解決運行時錯誤:this.initializationApp不是函數

如何解決運行時錯誤:this.initializationApp不是函數

猛跑小豬 2021-04-30 14:48:39
import {    Component,    ViewChild} from '@angular/core';import {    Platform,    NavController} from 'ionic-angular';import {    StatusBar} from '@ionic-native/status-bar';import {    SplashScreen} from '@ionic-native/splash-screen';import {    Storage} from '@ionic/Storage';import {    HomePage} from '../pages/home/home';import {    LoginPage} from '../pages/login/login';import {    RegisterPage} from '../pages/register/register';@Component({    templateUrl: 'app.html'}) export class MyApp {    _platform: Platform;    public get platform(): Platform {        return this._platform;    }    public set platform(value: Platform) {        this._platform = value;    }    @ViewChild('content') nav: NavController;    rootPage: any;    initialization: any;    initializationApp: any;    Platform: any;    statusBar: any;    splashScreen: any;    Storage: any;    constructor(public platform1: Platform, public StatusBar: StatusBar, public SplashScreen: SplashScreen, private storage: Storage) {        this.initializationApp();    }    initializeApp() {        this.platform.ready().then(() => {            this.statusBar.styleDefault();            this.splashScreen.hide();        });        this.storage.get('session_storage').then((res) => {            if (res == null) {                this.rootPage = LoginPage;            } else {                this.rootPage = HomePage;            }        });    }}
查看完整描述

1 回答

?
烙印99

TA貢獻1829條經驗 獲得超13個贊

在您的constructor方法中,您正在調用this.initializationApp();,但實際上是在調用該方法initializeApp()。將構造函數更改為call this.initializeApp();,您應該一切順利。


查看完整回答
反對 回復 2021-05-13
  • 1 回答
  • 0 關注
  • 143 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號