import Cookie from "tf-cookie";
// 设置cookie
Cookie.setItem(key, val /*,expires,domain*/);
// 获取cookie
Cookie.getItem(key);
// 获取所有cookie
Cookie.getAll();
// 移除某个cookie
Cookie.removeItem(key /*, domain*/);
// 移除所有cookie
Cookie.clear(/*domain*/);
-
Notifications
You must be signed in to change notification settings - Fork 0
newchen/tf-cookie
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published