Commit 063b31d8 authored by zhengke's avatar zhengke

no message

parent bbdd844c
......@@ -123,4 +123,17 @@ function getJavaA(msg, tk) {
"uid": uid,
}
return JSON.stringify(postData)
}
function query (url) {
url = location.href
let str = url.substr(url.indexOf('?') + 1)
const arr = str.split('&')
let json = {}
for(let i = 0; i < arr.length; i++) {
let item = arr[i].split('=')
json[item[0]] = item[1]
}
return json
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment