Skip to content

Commit c5ba95f

Browse files
committed
docs(bom): edit location wangdoc#101
1 parent 7bf9f88 commit c5ba95f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/bom/location.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ document.location = 'http://www.example.com';
7474
document.location.href = 'http://www.example.com';
7575
```
7676

77-
另外,`Location.href`属性是浏览器唯一允许跨域写入的属性,即非同源的窗口可以改写另一个窗口的`Location.href`属性,导致后者的网址跳转。`Location`的其他属性都不允许跨域写入。
77+
另外,`Location.href`属性是浏览器唯一允许跨域写入的属性,即非同源的窗口可以改写另一个窗口(比如子窗口与父窗口)的`Location.href`属性,导致后者的网址跳转。`Location`的其他属性都不允许跨域写入。
7878

7979
### 方法
8080

0 commit comments

Comments
 (0)