replaceState()
will change the URL in the browser (ie. pressing the back button won't take you back)
pushState()
will change the URL, and keep the old one in the browser history (ie. pressing the back button will take you back)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…