MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / queryStr

Method queryStr

wxapp/miaoyouHome.js:305–309  ·  view source on GitHub ↗

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

(options)

Source from the content-addressed store, hash-verified

303 * @returns {String} 将 Object 对象 转换成 queryStr: key=val&name=senku
304 */
305 queryStr(options) {
306 return Object.entries(options)
307 .map(([key, value]) => `${key}=${typeof value === 'object' ? JSON.stringify(value) : value}`)
308 .join('&');
309 }
310 isJSONString(str) {
311 try {
312 var obj = JSON.parse(str);

Callers 1

httpRequestMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected