MCPcopy Create free account
hub / github.com/ClydeTime/Surge / Json2Form

Function Json2Form

Script/Task/amap.js:17–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15
16//JSON转为&a=b拼接的提交内容 键按A~Z排序
17function Json2Form(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(t).sort().map((function(e){return"".concat(e,"=").concat(t[e])})).join("&")}
18
19//************抠的算法
20

Callers 2

getQueryFunction · 0.85
getBodyFunction · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected