问题描述
我正在使用Ionic框架为Android设备构建应用程序.我想使用localStorage存储数据.现在,我了解了它的含义,但是在设备上的任何位置都找不到它.我想浏览它以检查是否所有内容都按我的意愿保存.
I am building an application for android device using the Ionic framework. I want to store my data using localStorage. Now, I understand what it is but I can't find it anywhere on the device. I want to browse it to check if everything is saved as I want to.
创建应用并在我的设备(不是真实的手机)上运行应用程序时,我发现了许多用于浏览localStorage的工具,有没有办法浏览localStorage中的数据存储?
I found many different tools to browse localStorage when I create app and run it under my device (real phone not emulator) is there a way to browse data store in localStorage ?
推荐答案
使用远程调试(从Chrome到Android或从Safari到iOS),您可以轻松地在设备(或仿真器)上浏览LocalStorage.本文介绍了如何使用Chrome( https://developer.chrome.com/devtools /docs/remote-debugging ),其中涵盖了Safari( http://moduscreate.com/enable-remote-web-inspector-in-ios-6/).
Using remote debugging (for Chrome to Android or Safari to iOS) you can easily browser LocalStorage on the device (or emulator). This article documents how to do it with Chrome (https://developer.chrome.com/devtools/docs/remote-debugging) and this one covers Safari (http://moduscreate.com/enable-remote-web-inspector-in-ios-6/).
这篇关于如何浏览设备上的localStorage的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!