阅读背景:

如何在没有特定密钥的情况下删除localstorage内容?

来源:互联网 

I have a contenteditable div that serves as an editor and allows users to input text and save it under a title. The title names are then appended to a separate div, with the id "Contentable", and when the user clicks on a title its contents (the text the user input) will show up inside the editor. I also added a button to remove any titles inside "Contentable", but I can't figure out how to remove them from the localstorage, as they don't have a specific key assigned to it. So far I was only able to remove the words from the div, not the actual localstorage. that serves as an




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: