Viewing local storage contents on IE

后端 未结 3 693
旧时难觅i
旧时难觅i 2020-12-13 11:54

How can I view the contents of HTML5 local storage in IE? Chrome and FireFox provide a way through their developer tools to view the contents of local storage but I couldn\'

相关标签:
3条回答
  • 2020-12-13 12:26

    In IE11, you can see local storage in console on dev tools:

    1. Show dev tools (press F12)
    2. Click "Console" or press Ctrl+2
    3. Type localStorage and press Enter

    Also, if you need to clear the localStorage, type localStorage.clear() on console.

    0 讨论(0)
  • 2020-12-13 12:27

    Since localStorage is a global object, you can add a watch in the dev tools. Just enter the dev tools, goto "watch", click on "Click to add..." and type in "localStorage".

    0 讨论(0)
  • 2020-12-13 12:46

    Edge (as opposed to IE11) has a better UI for Local storage / Session storage and cookies:

    • Open Dev tools (F12)
    • Go to Debugger tab
    • Click the folder icon to show a list of resources - opens in a separate tab

    0 讨论(0)
提交回复
热议问题