zoukankan      html  css  js  c++  java
  • Jquery.cookie 插件

    使用教程



    Create session cookie:
        $.cookie('the_cookie', 'the_value');

    Create expiring cookie, 7 days from then:
        $.cookie('the_cookie', 'the_value', { expires: 7 });

    Create expiring cookie, valid across entire site:
        $.cookie('the_cookie', 'the_value', { expires: 7, path: '/' });

    Read cookie:
        $.cookie('the_cookie'); // => "the_value"
        $.cookie('not_existing'); // => null

    Delete cookie:
        // Returns true when cookie was found, false when no cookie was found...
        $.removeCookie('the_cookie');
        // Same path as when the cookie was written...
        $.removeCookie('the_cookie', { path: '/' });

  • 相关阅读:
    网络流
    KMP算法
    光现象
    物理学习须知
    声现象
    常见物理量测量方法
    洛谷 P1373 小a和uim之大逃离
    洛谷 P1242 新汉诺塔
    电磁现象
    磁化
  • 原文地址:https://www.cnblogs.com/yokoboy/p/2853775.html
Copyright © 2011-2022 走看看