删除一个 Cookie(通过将 expires 设为过去时间实现) path 和 domain 须与写入时一致,否则删除无效
expires
path
domain
Cookie 名称
删除时的路径与域名,须与写入时完全一致
removeCookie('token')removeCookie('sid', { path: '/app', domain: '.example.com' }) Copy
removeCookie('token')removeCookie('sid', { path: '/app', domain: '.example.com' })
删除一个 Cookie(通过将
expires设为过去时间实现)path和domain须与写入时一致,否则删除无效