Cookie 管理器, 可以通过该对象的方法操作 Cookie
获取 cookie
参数
| 必填 | 参数 | 说明 | 类型 | 默认值 |
|---|---|---|---|---|
| * | key | cookie key | string |
返回值: string | null
设置 cookie
参数
| 必填 | 参数 | 说明 | 类型 | 默认值 |
|---|---|---|---|---|
| * | key | cookie key | string | |
| * | value | cookie value | string | |
| options | cookie 配置 | ICookieOptions | {} |
ICookieOptions
返回值: void
移除 cookie
参数
| 必填 | 参数 | 说明 | 类型 | 默认值 |
|---|---|---|---|---|
| 是 | key | cookie key | string |
返回值: void