MDN’s new design is in Beta! A sneak peek: https://blog.mozilla.org/opendesign/mdns-new-design-beta/

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();
}

 

文档标签和贡献者

 此页面的贡献者: xilixinluo
 最后编辑者: xilixinluo,