urlObject.href
href
属性是将 protocol
和 host
组件都转换为小写的完整网址字符串。
例如:'http://user:pass@sub.example.com:8080/p/a/t/h?query=string#hash'
。
The href
property is the full URL string that was parsed with both the
protocol
and host
components converted to lower-case.
For example: 'http://user:pass@sub.example.com:8080/p/a/t/h?query=string#hash'
.