const url = new URL('http://localhost:8080/index.html?search=foo&other=bar'); console.log(url.origin + url.pathname);. As a note, this type of transformation is ...
確定! 回上一頁