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: '/' });

  • 相关阅读:
    JAVA面向对象概述
    练习
    字符串
    图形代码
    assets转到内外部存储
    file存储
    sp存储
    Intent练习
    存储登录
    存储
  • 原文地址:https://www.cnblogs.com/yokoboy/p/2853775.html
Copyright © 2011-2022 走看看