实现不刷新页面,修改浏览器url地址

示例代码:

<script type="text/javascript">
    var test=window.location.href    
    if(test.indexOf("source")<=0){
        history.pushState("", "Title", test+"?"+"&source="+"&source2=");
    }
</script>


猜你喜欢

转载自blog.csdn.net/baiyan_er/article/details/80901553
今日推荐