Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- current_url = new URL("http://localhost:8000/test.html?key1=links");
- > URL {href: "http://localhost:8000/test.html?key1=links", origin: "http://localhost:8000", protocol: "http:", username: "", password: "", …}
- current_url.search
- > "?key1=links"
- current_url.searchParams
- > URLSearchParams {}
- v = new URLSearchParams(current_url.search)
- > URLSearchParams {}
- v = new URLSearchParams("key1=links")
- > URLSearchParams {}
Add Comment
Please, Sign In to add comment