Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var toQueryString=function (obj) {
- var parts = [];
- for (var i in obj) {
- if (obj.hasOwnProperty(i)) {
- parts.push(encodeURIComponent(i) + "=" + encodeURIComponent(obj[i]));
- }
- }
- return parts.join("&");
- }
Add Comment
Please, Sign In to add comment