javascript window.history.go(-1);返回刷新不执行呢?是不是你们的BUG啊
javascriptwindow.history.go(-1);返回刷新不执行呢?是不是你们的BUG啊,IE和google都能执行,而且是W3C标准上写了的会执行刷新的。...
javascript window.history.go(-1);返回刷新不执行呢?是不是你们的BUG啊,IE 和 google都能执行,而且是W3C标准上写了的会执行刷新的。history.back();才不刷新啊。
展开
1个回答
展开全部
您好!很高兴为您答疑。
火狐浏览器关于web页面的方法说明如下:
History.go()Loads a page from the session history, identified by its relative location to the current page, for example -1 for the previous page or 1 for the next page. When integerDelta is out of bounds (e.g. -1 when there are no previously visited pages in the session history), the method doesn't do anything and doesn't raise an exception. Calling go() without parameters or with a non-integer argument has no effect (unlike Internet Explorer, which supports string URLs as the argument).
据此可知其本身没有刷新不刷新页面之说,而是Loads a page from the session history,如果您需要更多的说明,可以参阅:https://developer.mozilla.org/en-US/docs/Web/API/window.history
如果对我们的回答存在任何疑问,欢迎继续问询。
火狐浏览器关于web页面的方法说明如下:
History.go()Loads a page from the session history, identified by its relative location to the current page, for example -1 for the previous page or 1 for the next page. When integerDelta is out of bounds (e.g. -1 when there are no previously visited pages in the session history), the method doesn't do anything and doesn't raise an exception. Calling go() without parameters or with a non-integer argument has no effect (unlike Internet Explorer, which supports string URLs as the argument).
据此可知其本身没有刷新不刷新页面之说,而是Loads a page from the session history,如果您需要更多的说明,可以参阅:https://developer.mozilla.org/en-US/docs/Web/API/window.history
如果对我们的回答存在任何疑问,欢迎继续问询。
更多追问追答
追问
那我需要刷新火狐用哪个方法呢,IE和google都是可以刷新的?也就是firefox是不会出可以刷新的JS API了?
追答
或者您可以尝试一下:document.referrer;
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询