Giter VIP home page Giter VIP logo

Comments (4)

marcuswestin avatar marcuswestin commented on May 22, 2024

Hey Meai1,

Thanks for the suggestion!

There is no way to list all keys with userData (ie6/7). This means that we would not be able to expose this API on on all supported browsers without keeping track of all stored keys ourselves.

In modern browsers you can easily view all current keys and values in localStorage:

for (var key in localStorage) { console.log(key, localStorage[key]) }

With that in mind, what do you think we should do?

Cheers!
Marcus

from store.js.

Meai1 avatar Meai1 commented on May 22, 2024

it's fine if it only works for modern browsers, like I said I only need it so I can quickly check on the console what has been set

from store.js.

marcuswestin avatar marcuswestin commented on May 22, 2024

In e.g Chrome you can type localStorage into the console and hit enter - it sounds like that will do what you want.

-- while mobile

On Nov 21, 2011, at 8:42 PM, [email protected] wrote:

it's fine if it only works for modern browsers, like I said I only need it so I can quickly check on the console what has been set


Reply to this email directly or view it on GitHub:
#27 (comment)

from store.js.

marcuswestin avatar marcuswestin commented on May 22, 2024

Am assuming that did the job for you - if no, let me know!

Cheers,
Marcus

from store.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.