Skip to content

Commit 6dc6fb5

Browse files
Update cookie.md (wangdoc#255)
cookie中domain的值中是不能加*号的
1 parent 2e3f11b commit 6dc6fb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/bom/cookie.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ document.cookie = "foo=bar; expires=Fri, 31 Dec 2020 23:59:59 GMT";
352352
document.cookie = 'fontSize=14; '
353353
+ 'expires=' + someDate.toGMTString() + '; '
354354
+ 'path=/subdirectory; '
355-
+ 'domain=*.example.com';
355+
+ 'domain=.example.com';
356356
```
357357

358358
Cookie 的属性一旦设置完成,就没有办法读取这些属性的值。

0 commit comments

Comments
 (0)