Guest User

Untitled

a guest
Oct 24th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. current_url = new URL("http://localhost:8000/test.html?key1=links");
  2. > URL {href: "http://localhost:8000/test.html?key1=links", origin: "http://localhost:8000", protocol: "http:", username: "", password: "", …}
  3. current_url.search
  4. > "?key1=links"
  5.  
  6. current_url.searchParams
  7. > URLSearchParams {}
  8. v = new URLSearchParams(current_url.search)
  9. > URLSearchParams {}
  10. v = new URLSearchParams("key1=links")
  11. > URLSearchParams {}
Add Comment
Please, Sign In to add comment