@zeppos/zml
Version:
A Mini Library of ZeppOS MiniApp
2 lines (1 loc) • 431 B
JavaScript
let e=null;function o(e){if(!e||"object"!=typeof e)throw new Error("obj is required and must be an object");const o=[];for(let[n,t]of Object.entries(e))n=encodeURIComponent(n),Array.isArray(t)?t.forEach((e=>{o.push(`${n}[]=${encodeURIComponent(e)}`)})):o.push(`${n}=${encodeURIComponent(t)}`);return o.join("&")}e="undefined"!=typeof __$$R$$__?__$$R$$__:()=>({});const n=e("@zos/utils").qs.parse;export{n as parse,o as stringify};