原创 客户端存储数据工具库-PersistJS 收藏

新一篇: UrlRewriter2.0使用中的问题 | 旧一篇: .Net下一招搞定SQL注入攻击

替代Cookie在客户端存储数据。

 Cookie存储数据缺点:

  • Size: Cookies are limited to about 4 kilobytes in size.
  • Bandwidth: Cookies are sent along with every HTTP transaction.
  • Complexity: Cookies are difficult to manipulate correctly.

    PersistJS优点:

  • Small (9.3k minified, 3k gzipped)
  • Standalone: Does not need any additional browser plugins or JavaScript libraries to work on the vast majority of current browsers.
  • Consistent: Provides a consistent, opaque API, regardless of the browser.
  • Extensible: Custom backends can be added easily.
  • Backwards Compatible: Can fall back to flash or cookies if no client-side storage solution for the given browser is available.
  • Forwards Compatible: Supports the upcoming versions of Internet Explorer, Firefox, and Safari (Opera too, if you have Flash).
  • Unobtrusive: Capability testing rather than browser detection, so newer standards-compliant browsers will automatically be supported

     

    与PersistJS类似功能项目包括:Dojo Storage。遗憾的是DojoStorage依赖Flash,没有安装Flash的浏览器DOJO storage不起作用。

  • 原文地址http://www.zgkw.cn/forums/forums/74105/ShowThread.aspx#74105

  • 发表于 @ 2008年05月31日 11:54:12|评论(loading...)|编辑

    新一篇: UrlRewriter2.0使用中的问题 | 旧一篇: .Net下一招搞定SQL注入攻击

    评论:没有评论。

    发表评论  


    当前用户设置只有注册用户才能发表评论。如果你没有登录,请点击登录
    Csdn Blog version 3.1a
    Copyright © keller