urlObject.href


href 属性是完整的 URL 字符串,解析时将 protocolhost 组件都转换为小写。

🌐 The href property is the full URL string that was parsed with both the protocol and host components converted to lower-case.

例如:'http://user:pass@sub.example.com:8080/p/a/t/h?query=string#hash'

🌐 For example: 'http://user:pass@sub.example.com:8080/p/a/t/h?query=string#hash'.