Created
December 7, 2017 12:31
-
-
Save Houserqu/1efaf364532aacbe06da7b684d7c634f to your computer and use it in GitHub Desktop.
json to url query
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
| url = Object.keys(data).map(function(k) { | |
| return encodeURIComponent(k) + '=' + encodeURIComponent(data[k]) | |
| }).join('&') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment