Skip to content

Instantly share code, notes, and snippets.

@rskull
Created February 7, 2012 17:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rskull/1760906 to your computer and use it in GitHub Desktop.
Save rskull/1760906 to your computer and use it in GitHub Desktop.
GETパラメーターを取得する
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