url.toString()
- 返回: <string>
URL 对象上的 toString() 方法返回序列化的网址。
返回值等同于 url.href 和 url.toJSON() 的值。
- Returns: <string>
The toString() method on the URL object returns the serialized URL. The
value returned is equivalent to that of url.href and url.toJSON().