dahas/cookie_management
Composer 安装命令:
composer require dahas/cookie_management
包简介
Easy cookie handling.
README 文档
README
A script to easily handle cookies.
Requirements
- jQuery
Usage
- Include the file after the jQuery library:
<script src="[your_path]/cookie_mgmt.js" type="text/javascript"></script>
- Make an instance:
var Cookie = new Cookie(name[, expDays, path]);
- Adding a value to the cookie (creates cookie, if it doesn´t exist):
Cookie.set(parameter, value);
- Reading a paramter from the cookie:
Cookie.get(parameter);
- Deleting a parameter and its value (removes the cookie, if no further parameters exist):
Cookie.clear(parameter);
- Remove the cookie:
Cookie.remove();
License
MIT
统计信息
- 总下载量: 37
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-12-04