EN: Handle Cookie.
ZH: 设置/获取 Cookie。
Usage:
setCookie('test', '123', 30, 'example.com'); // key value day domainconst ret = getCookie('test');console.log(ret); Copy
setCookie('test', '123', 30, 'example.com'); // key value day domainconst ret = getCookie('test');console.log(ret);
Output:
123 Copy
123
Optional
EN: Handle Cookie.
ZH: 设置/获取 Cookie。
Usage:
Output: