I am learning about HTML5 these days.
Here comes trouble when I want to remove just one of the data in the localStorage.
I know a method called clear() to remove anything, but what can I do if I just remove one of the data by its key?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Does
delete window.localStorage["foo"]not work for you for some reason?