Add: rmCookie util

This commit is contained in:
surunzi
2018-02-22 14:27:41 +08:00
parent 8e79b97938
commit 22c2bbc2a7
4 changed files with 88 additions and 46 deletions

View File

@@ -1967,6 +1967,18 @@ var paramArr = _.restArgs(function (rest) { return rest });
paramArr(1, 2, 3, 4); // -> [1, 2, 3, 4]
```
## rmCookie
Loop through all possible path and domain to remove cookie.
|Name|Type |Desc |
|----|------|----------|
|key |string|Cookie key|
```javascript
rmCookie('test');
```
## root
Root object reference, `global` in nodeJs, `window` in browser.