How to change url after success in ajax without page reload

前端 未结 3 1098
孤城傲影
孤城傲影 2020-12-24 02:23

This is the ajax



        
3条回答
  •  不知归路
    2020-12-24 03:02

    Use the browser history to change the url bar in JS.

          history.pushState()
         history.replaceState()
    

    https://developer.mozilla.org/en-US/docs/Web/API/History_API

提交回复
热议问题