Function: clearCookie

clearCookie(domain?, path?): void

清除所有 cookie

Parameters

Name Type Default value Description
domain? string undefined 可选域名
path? string '/' 可选路径,默认为'/'

Returns

void

Example

clearCookie('example.com');
ON THIS PAGE