Posted By

sircambridge on 10/27/08


Tagged

toQueryStringjavascript


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

nreliu


toQueryString


 / Published in: Other
 

  1. var toQueryString = function(queryObj) {
  2. var params=[];
  3. for (var property in queryObj){
  4. params.push(property+'='+queryObj[property]);
  5. };
  6. return params.join('&');
  7. };

Report this snippet  

You need to login to post a comment.