External module: cookie操作
Index
Functions
Functions
get_cookie
▸ get_cookie(name: string
): undefined
| string
Defined in cookie/get.ts:11
获取Cookie值 需要安装依赖"js-cookie": "2.2.0"
Parameters:
Name | Type |
---|---|
name | string |
Returns: undefined
| string
remove_cookie
▸ remove_cookie(name: string
): void
Defined in cookie/remove.ts:11
设置Cookie值 需要安装依赖"js-cookie": "2.2.0"
Parameters:
Name | Type |
---|---|
name | string |
Returns: void
set_cookie
▸ set_cookie(name: string
, value: string
, options: CookieAttributes
): void
Defined in cookie/set-with-options.ts:15
设置Cookie值,整个站点均可访问 需要安装依赖"js-cookie": "2.2.0"
Parameters:
Name | Type | Description |
---|---|---|
name | string |
|
value | string |
|
options | CookieAttributes |
参数 |
Returns: void
set_cookie
▸ set_cookie(name: string
, value: string
): void
Defined in cookie/set.ts:11
设置Cookie值,整个站点均可访问 需要安装依赖"js-cookie": "2.2.0"
Parameters:
Name | Type |
---|---|
name | string |
value | string |
Returns: void