mirror of
https://github.com/wangdoc/javascript-tutorial.git
synced 2025-12-25 19:53:58 +08:00
@@ -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 的属性一旦设置完成,就没有办法读取这些属性的值。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user