主要作用是用于提取连接上的参数并把当前参数转换为对象(还有更多用法待探索)
function stringToObj(str) {if (typeof str != 'string') return {}let res = {}str.split('&').forEach((item) => {let arr = item.split('=')res[arr[0]] = arr[1]})return res}//检验对象是否为空function isEmpty(obj) {return (obj == null || obj == '' || obj.length == 0 || obj == 'null') ? true : false;}

