会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
liyunxi
博客园
首页
新随笔
联系
订阅
管理
2023年9月18日
window.history.pushState()和window.history.replaceState()
摘要: 今天在项目中遇到 要实现修改地址栏但是页面不可以刷新的需求 查阅资料发现可以用window.history.pushState(state, title, url)和window.history.replaceState(state, title, url) 三个参数: state:一个与添加的记录
阅读全文
posted @ 2023-09-18 18:50 李云蹊
阅读(256)
评论(0)
推荐(0)
编辑
公告