每日一库:store.js,jquery.metacookie.js
store.js:https://github.com/marcuswestin/store.js
实现了跨浏览器的本地存储,ie8-用的是userData,其他浏览器用的是localstorage
jquery.metacookie.js:https://github.com/Jimgskoop/jquery.metacookie
实现了cookie以及【subcookie(子cookie)操作】,如果你的网站cookie个数较多,超过了限制(未打补丁的ie6,ie7貌似只能存20个),这时子cookie将非常有用。
其实实现很简单,无非就是字符串的操作