Skip to content

Commit 84ad4b7

Browse files
authored
docs:update
1 parent 5391148 commit 84ad4b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

6-data-storage/01-cookie/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ document.cookie = "user=John; domain=site.com"
122122
alert(document.cookie); // 也存在 user
123123
```
124124

125-
因为历史原因,`domain=.site.com`(以点开头)也可以正常使用,为了支持老版本的浏览器,加一个点这种写法更加合适
125+
因为历史原因,`domain=.site.com`(以点开头)也可以正常使用,最好添加点来支持老版本的浏览器
126126

127127
所以,`domain` 选项允许子域名访问 cookie。
128128

0 commit comments

Comments
 (0)