Skip to content

Function: removeItem() ​

ts
function removeItem(key: string): void

根据key值删除Cookie中键值对

Example ​

ts
removeItem('test');

Parameters ​

ParameterTypeDescription

key

string

key值

Returns ​

void