//{name:'111',age:'122',age:[1,2,3]}
export function objTostring(obj) {
const result = [];
for (var k in obj) {
if (obj[k] !== null && JSON.stringify(obj[k]) != '[]' && obj[k] !== "" && typeof (obj[k]) !== "undefined") {
if (typeof obj[k] == 'object') {
result.push(`${k}=${JSON.stringify(obj[k])}`);
} else {
result.push(`${k}=${obj[k]}`);
}
}
}
return result.join("&");
//name'111'&age='122'&age=[1,2,3]
}