Created
February 7, 2012 17:35
-
-
Save rskull/1760906 to your computer and use it in GitHub Desktop.
GETパラメーターを取得する
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 getRequest () { | |
var parm = [] | |
var parms = location.search.substring(1).split('&'); | |
for (i=0;i<parms.length;i++) { | |
var rep = parms[i].split('='); | |
parm[rep[0]] = rep[1]; | |
} | |
return parm; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment