Update cookie.md (#255)

cookie中domain的值中是不能加*号的
This commit is contained in:
孟祥_成都
2023-02-04 10:34:02 +08:00
committed by GitHub
parent 2e3f11bdb9
commit 6dc6fb5e4a

View File

@@ -352,7 +352,7 @@ document.cookie = "foo=bar; expires=Fri, 31 Dec 2020 23:59:59 GMT";
+ 'expires=' + someDate.toGMTString() + '; '
+ 'path=/subdirectory; '
+ 'domain=.example.com';
```
```
Cookie 的属性一旦设置完成,就没有办法读取这些属性的值。