Skip to content

Instantly share code, notes, and snippets.

@ih2502mk
Created November 20, 2012 15:35
Show Gist options
  • Save ih2502mk/4118650 to your computer and use it in GitHub Desktop.
Save ih2502mk/4118650 to your computer and use it in GitHub Desktop.
adding key_value params to url
var key_value = [
"paam_1=value_1",
"paam_2=value_2",
"paam_3=value_3",
"paam_4=value_4",
]
url.indexOf("?") == -1 ? "?" : "&") + key_value.join("&");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment