<script type="javascrpit">
var url='';//需要跳转的页面
var search = window.location.search;
if(search){
if(url.indexOf("?")!=-1)
{
url+="&";
}else
{
url+="?";
}
url +=search.substr(1)+window.location.hash;
}
window.location.href=url;
</script>