How can I change the page URL without refreshing the page?

前端 未结 4 504
日久生厌
日久生厌 2020-11-30 23:46

How do I change the URL without refreshing the page?

I\'ve built a website with CodeIginer and I want to implement AJAX and JQuery in one of my pages. The problem is

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-01 00:05

    A similar thread deduced no, unless using a hash tag.

    One idea put forward, but strongly discouraged, was using a 204 HTTP response.

    From the W3:

    No Response 204

    Server has received the request but there is no information to send back, and the client should stay in the same document view. This is mainly to allow input for scripts without changing the document at the same time.

提交回复
热议问题