From what I've read of web storage in HTML5, there are a number of different storage options with varying support across different browsers.
Are there any popular libraries for abstraction of web storage in HTML5 applications?
There are a couple of YUI-based libraries for abstracting the underlying storage away:
You'd need to port them if you wanted to use them with another library, though it looks like someone has already done that for jQuery.
来源:https://stackoverflow.com/questions/7385854/html5-web-storage-abstraction-libraries