const obj = { hello: 1, world: 2 }; const qs = $.param(obj); console.log('qs is ' + qs);
Programming Tips - jQuery: convert an object into a query string?
Date: 2017nov14
Library: jQuery
Language: javaScript
Q. jQuery: convert an object into a query string?
A. Using jQuery.param(obj) like this: