Created
July 17, 2017 12:57
-
-
Save sharkyak/1b674cd4fc92e43909dc51ca2d12dadf to your computer and use it in GitHub Desktop.
js get url params
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const url = new URL(location.href); | |
const id = url.searchParams.get('company'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment