history.back()
时间: 2024-02-16 11:41:38 浏览: 81
[removed]history.go()和History.back()的区别及应用
history.back() is a JavaScript method that allows you to navigate back to the previous page in the user's browsing history. This method is often used in web development to create a "back" button or link that allows users to easily navigate to the previous page they were viewing. When the history.back() method is called, the browser will load the previous page in the history stack, which may include any previous pages the user has visited during the current browsing session. This method is part of the browser's built-in history object, which allows developers to interact with the user's browsing history programmatically.
阅读全文