new Cookie()
Cookie 类
客户端专用 Cookie 类,调用如下:
// 非法调用
const cookie = new Cookie();
// 合法调用
import Ux from 'ux';
const value = Ux.Cookie.get("testKey");
Methods
(static) get(key) → {any}
Parameters:
Name | Type | Description |
---|---|---|
key |
String | 将要读取 cookie 中的键值。 |
Returns:
返回读取的数据
- Type
- any