Javascript来修改当前的URL?
这个问题在这里已经有了答案:
if (location.search)
{
location.href = location.protocol + "//" + location.host + location.pathname;
}
这应该重新加载到当前的URL减去任何查询字符串。
var new_url = (window.location+'').replace(/?.*/,'');
window.location = new_url;
document.location.href=goodpart[0];
链接地址: http://www.djcxy.com/p/70301.html