function handleSearch (data) {
let obj = {}
let str = data.substr(1)
str = str.split("&")
str.forEach(item => {
let key = item.split("=")[0]
let value = item.split("=")[1]
obj[key] = value
})
return obj
}
js处理seacrch
最新推荐文章于 2024-05-21 10:56:13 发布