Skip to content

Instantly share code, notes, and snippets.

@kopiro
Created September 26, 2013 18:45
Show Gist options
  • Select an option

  • Save kopiro/6718739 to your computer and use it in GitHub Desktop.

Select an option

Save kopiro/6718739 to your computer and use it in GitHub Desktop.
Simply, $_GET!
function $_GET(v) {
var m = location.href.match(v+"=([^&]*)");
return m && m.length>=1 ? m[1] : null;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment