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

使用
history.replaceState(null, "title","arg");
例如:
history.replaceState(null, "",'?category_id=0'+'&page='+pageIndex);

猜你喜欢

转载自www.cnblogs.com/xiaokar/p/12743506.html
今日推荐