MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / queryStr

Method queryStr

jlld.js:370–374  ·  view source on GitHub ↗

* @param {Object} options * @returns {String} 将 Object 对象 转换成 queryStr: key=val&name=senku

(options)

Source from the content-addressed store, hash-verified

368 * @returns {String} 将 Object 对象 转换成 queryStr: key=val&name=senku
369 */
370 queryStr(options) {
371 return Object.entries(options)
372 .map(([key, value]) => `${key}=${typeof value === 'object' ? JSON.stringify(value) : value}`)
373 .join('&');
374 }
375 isJSONString(str) {
376 try {
377 var obj = JSON.parse(str);

Callers 1

httpRequestMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected