var json = {
'test':'hello',
'testName':'world',
'testVal':''
}
var param = Object.keys(json).map(function (key) {return encodeURIComponent(key) + "=" + encodeURIComponent(json[key]); }).join("&");
Json转URL
最新推荐文章于 2024-03-19 18:44:45 发布