const obj = { hello: 1, world: 'two' }; const qs = $.param(obj); console.log('qs is ' + qs);Output (in the log):
qs is hello=1&world=twoThen you can use that as part of a URL (eg for AJAX)
const obj = { hello: 1, world: 'two' }; const qs = $.param(obj); console.log('qs is ' + qs);Output (in the log):
qs is hello=1&world=twoThen you can use that as part of a URL (eg for AJAX)