摘要: ###1.修改输入框的url并回车会发起http请求 ####1.1 Hello World! ####1.2 Hello demo2! ###2.1 通过history.pushState方法修改url不会发起http请求 ####步骤:pushState('demo') ####结果:输入框ur 阅读全文
posted @ 2021-03-01 15:03 17135131xjt 阅读(223) 评论(0) 推荐(0) 编辑
摘要: <script> const state = { 'page_id': 1, 'user_id': 5 } const title = '' const url = 'hello-world.html' history.pushState(state, title, url) </script> # 阅读全文
posted @ 2021-03-01 12:52 17135131xjt 阅读(225) 评论(0) 推荐(0) 编辑