我的应用程序反应很奇怪。我真的没有任何工作人员在运行或从服务器调用大量数组数据。
但是我的应用程序在启动到第一个屏幕页面时运行了大约 500MB,它总是 500MB 甚至没有减少,当我故意按 HOME 按钮进入手机主屏幕,然后再次回到我的应用程序时,内存现在减少到 16MB。这怎么可能呢?
离子信息
Cordova CLI: 6.5.0
Ionic Framework Version: 1.3.5
Ionic CLI Version: 2.1.18
Ionic App Lib Version: 2.1.9
ios-deploy version: Not installed
ios-sim version: Not installed
OS: macOS High Sierra
Node Version: v6.11.4
Xcode version: Xcode 9.2 Build version 9C40b
插件
com.verso.cordova.clipboard 0.1.0 "Clipboard"
cordova-plugin-app-event 1.2.1 "Application Events"
cordova-plugin-app-version 0.1.9 "AppVersion"
cordova-plugin-apprate 1.3.0 "AppRate"
cordova-plugin-badge 0.7.4 "Badges"
cordova-plugin-compat 1.2.0 "Compat"
cordova-plugin-device 1.1.5 "Device"
cordova-plugin-dialogs 2.0.1 "Notification"
cordova-plugin-facebook4 1.7.4 "Facebook Connect"
cordova-plugin-geolocation 2.4.2 "Geolocation"
cordova-plugin-globalization 1.0.9 "Globalization"
cordova-plugin-google-analytics 0.8.1 "Google Universal Analytics Plugin"
cordova-plugin-inappbrowser 1.7.0 "InAppBrowser"
cordova-plugin-ionic-webview 1.1.19 "cordova-plugin-ionic-webview"
cordova-plugin-network-information 1.3.2 "Network Information"
cordova-plugin-splashscreen 4.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2-dev "StatusBar"
cordova-plugin-whitelist 1.3.2 "Whitelist"
cordova-plugin-x-socialsharing 5.1.7 "SocialSharing"
cordova-plugin-x-toast 2.6.0 "Toast"
ionic-plugin-keyboard 2.2.1 "Keyboard"
phonegap-plugin-push 1.10.2 "PushPlugin"