Generally, when doing ajax load, many people do not consider that the browser needs to support the forward and backward functions, because most people do not know that it can be achieved.
I encountered this problem recently. After a short period of research, I found that github already has ready-made open source tools for use. The main implementation principle is to use the anchor point of html, that is,
The main demo code is as follows:
html