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

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

如何解決運(yùn)行時錯誤:this.initializationApp不是函數(shù)

如何解決運(yùn)行時錯誤:this.initializationApp不是函數(shù)

猛跑小豬 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貢獻(xiàn)1829條經(jīng)驗(yàn) 獲得超13個贊

在您的constructor方法中,您正在調(diào)用this.initializationApp();,但實(shí)際上是在調(diào)用該方法initializeApp()。將構(gòu)造函數(shù)更改為call this.initializeApp();,您應(yīng)該一切順利。


查看完整回答
反對 回復(fù) 2021-05-13
  • 1 回答
  • 0 關(guān)注
  • 154 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號