Created
November 22, 2017 00:56
-
-
Save deguchi/ea94228a605a1f17c6f55af587403efe to your computer and use it in GitHub Desktop.
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
function getQueryString() { | |
var params = {} | |
location.search.substr(1).split('&').map(function(param) { | |
var pairs = param.split('='); | |
params[pairs[0]] = decodeURIComponent(pairs[1]); | |
}); | |
return params; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment