js multiple methods: return to the previous page

go back to the last page:

// 1. 第一种
window.history.go(-1);
// 2. 第二种
window.history.back();
// 3. 第三种
window.location.go(-1);

read

·1. cnblogs: JS returns to the previous page

Guess you like

Origin blog.csdn.net/qq_35393869/article/details/108599860