How to view/delete local storage in Firefox?

后端 未结 7 1318
萌比男神i
萌比男神i 2020-12-07 08:38

In Google Chrome there is an easy way to see what\'s in local storage as well as modify or delete it after inspecting it.

Is there a way to do the same in Firefox?

相关标签:
7条回答
  • 2020-12-07 09:25

    You can delete localStorage items one by one using Firebug (a useful web development extension) or Firefox's developer console.

    Firebug Method

    1. Open Firebug (click on the tiny bug icon in the lower right)
    2. Go to the DOM tab
    3. Scroll down to and expand localStorage
    4. Right-click the item you wish to delete and press Delete Property

    Developer Console Method

    You can enter these commands into the console:

    localStorage; // click arrow to view object's properties
    localStorage.removeItem("foo"); 
    localStorage.clear(); // remove all of localStorage's properties
    

    Storage Inspector Method

    Firefox now has a built in storage inspector, which you may need to manually enable. See rahilwazir's answer below.

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