Created
November 20, 2012 15:35
-
-
Save ih2502mk/4118650 to your computer and use it in GitHub Desktop.
adding key_value params to url
This file contains 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
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