url.toString()


URL 对象的 toString() 方法返回序列化后的 URL。返回的值等同于 url.hrefurl.toJSON() 的值。

【The toString() method on the URL object returns the serialized URL. The value returned is equivalent to that of url.href and url.toJSON().】