最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Is there a way to view the contents of localStorage on the iPad? - Stack Overflow

programmeradmin7浏览0评论

In Settings/Safari, there is a Databases entry that allows me to view databases that have been created on my iPad (not their contents, but their size and origin).

However, I don't see any way to see what's in localStorage. I'm using the console to access localStorage in Safari (Develop > Show Web Inspector and clicking on the Storage tab).

Is there a way to view localStorage on the iPad that I'm missing?

Thanks

In Settings/Safari, there is a Databases entry that allows me to view databases that have been created on my iPad (not their contents, but their size and origin).

However, I don't see any way to see what's in localStorage. I'm using the console to access localStorage in Safari (Develop > Show Web Inspector and clicking on the Storage tab).

Is there a way to view localStorage on the iPad that I'm missing?

Thanks

Share Improve this question asked May 3, 2011 at 17:14 ElisabethElisabeth 3,0326 gold badges37 silver badges40 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 10

If you have access to an Apple puter, you can use Safari's Web Inspector to inspect stuff on your iPad - including localStorage and sessionStorage.

  • In your iPad, go to Settings > Safari > Advanced and turn on Allow Remote Debugging.

  • Then, plug it into your Apple puter.

  • In Safari, go to your settings and choose Advanced. Check the box that says Show Develop menu in the menu bar.

  • Now, if you click on develop on the top menu bar, you will be able to see your iPad. You will be able to inspect elements and use it much like Webkit's Web Inspector.

Currently, though, it is not using the standard Webkit inspector - and many people have an issue with this.

You can access localStorage with javascript mands. (See https://developer.mozilla/en/dom/storage#localStorage for reference.)

To debug remotely, try using http://jsconsole./.

Also, you can enable viewing of console.log() output under iPad Settings -> Safari, which might help you debug locally.

发布评论

评论列表(0)

  1. 暂无评论