localtion.search是url中拼接的参数部分
js去除url中的localtion.search部分包括?部分
if (location.search) {
var old_url = window.location.href
var new_url = old_url.substring(0, old_url.indexOf('?'))
self.location = new_url
}
localtion.search是url中拼接的参数部分
js去除url中的localtion.search部分包括?部分
if (location.search) {
var old_url = window.location.href
var new_url = old_url.substring(0, old_url.indexOf('?'))
self.location = new_url
}