Julyyq / Cookie.js

Operate cookie use plain javascript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cookie.js

Operate cookie use plain javascript

Usage

Cookie.set(name, value, expires);

Cookie.get(name);

Cookie.remove(name);

Example

Cookie.set("name", "Allen", 1);

Cookie.get("name");

//output: "Allen"

About

Operate cookie use plain javascript


Languages

Language:JavaScript 100.0%