我试图找出如何使用JavaScript在Safari(5.1)中刷新页面,但似乎没有任何方法能够奏效。
到目前为止,我尝试过以下方法:
- window.location.href = window.location.href
- window.location = window.location.href
- window.location.reload(true)
- window.location.replace(window.location.href)
在Safari中正确处理页面刷新的方式是什么?