Skip to content

Function: getItemOnce() ​

ts
function getItemOnce(key: string): string

根据key值获取cookie数据后删除Cookie中该键值对

Example ​

ts
getItemOnce('test');

Parameters ​

ParameterTypeDescription

key

string

key值

Returns ​

string

Cookie中键值为key的值