Skip to content

Commit b4e7f36

Browse files
committed
docs(bom): edit location.host
1 parent 0456738 commit b4e7f36

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
@@ -12,7 +12,7 @@ URL 是互联网的基础设施之一。浏览器提供了一些原生对象,
1212

1313
- `Location.href`:整个 URL。
1414
- `Location.protocol`:当前 URL 的协议,包括冒号(`:`)。
15-
- `Location.host`:主机,包括冒号`:`)和端口(默认的80端口和443端口会省略)
15+
- `Location.host`:主机。如果端口不是协议默认的`80``433`,则还会包括冒号`:`)和端口。
1616
- `Location.hostname`:主机名,不包括端口。
1717
- `Location.port`:端口号。
1818
- `Location.pathname`:URL 的路径部分,从根路径`/`开始。

0 commit comments

Comments
 (0)