Skip to content

Function: exist() ​

ts
function exist(key: string): boolean

根据key值判断Cookie中是否存在键值对

Example ​

ts
exist('test');

Parameters ​

ParameterTypeDescription

key

string

key值

Returns ​

boolean