jQuery中提供了param方法,可以將物件轉換成query string

console.log($.param({name:'johnsonlu'}));
Categories: jQuery