浏览器对window.location.reload的支持(true) [英] Browser support for window.location.reload(true)

查看:278
本文介绍了浏览器对window.location.reload的支持(true)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所有浏览器都支持window.location.reload(),根据 w3schools

但是 window.location.reload(true)会重新加载页面没有缓存?它的支持程度如何?

But what's with window.location.reload(true) which reloads the page without cache? How well is it supported?

推荐答案

location.reload()需要规范中没有参数所以不要依赖它。它在某些浏览器中实现,包括 Mozilla Firefox

location.reload() takes no arguments in the specification, so do not rely on it. It is implemented in some browsers though, including Mozilla Firefox.

这篇关于浏览器对window.location.reload的支持(true)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆