如何改变地址栏参数不跳转页面或刷新页面

使用
history.replaceState(null, "title","arg");
例如:
history.replaceState(null, "",'?category_id=0'+'&page='+pageIndex);
原文地址:https://www.cnblogs.com/xiaokar/p/12743506.html