📅  最后修改于: 2022-03-11 15:04:05.288000             🧑  作者: Mango
var params = { width:1680, height:1050 };
// Using VanillaJs
Object.keys(params).map(function(k) {
return encodeURIComponent(k) + "=" + encodeURIComponent(hipChatSettings[k]);
}).join('&')
//using jQuery
var str = jQuery.param( params );