Window.back()

您正在阅读此内容的英文版本,因为该语系尚未翻译。 帮助我们翻译此文章吧!

非标准
该特性是非标准的,请尽量不要在生产环境中使用它!

已废弃 Gecko 31 (Firefox 31 / Thunderbird 31 / SeaMonkey 2.28)
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.

总结

跳转窗口到history中的前一个地址, 这曾是 Gecko 的方法。请使用标准的history.back 替代它。

Syntax

window.back()

Example

function goBack() { 
   if ( canGoBack ) window.back();
}