The problem of js mobile returning refresh data

vue non-single page application, a pull-up loaded list, by clicking on the loaded content to jump to the next page, and then click back, the page will re-render the data of the first screen, how to keep the page in its original state and not refresh it?

Dec.08,2021

Lou Zhu, vue routing keep-alive understand, refer to this article, portal


keep-alive


doesn't he have a rolling distance, you can remember his rolling distance


try window.open

window.open("http://www.w3school.com.cn")

in this way, you can open a new page, and the original page will not be replaced

if it is a a tag, you can add the target=_blank attribute, and a new page will be opened

.
<a href="pref.html" target="_blank">Preface</a>
Menu