目前,使用 angularJS 的 $cookieStore,我在注销时一一清除 cookie。
$cookieStore.remove('gender');
$cookieStore.remove('username');
我检查了控制台中的 $cookieStore 对象,发现它看起来像这样。
Object {get: function, put: function, remove: function}
有什么方法可以在不删除单个 cookie 的情况下清除 $cookieStore 中的所有 cookie?