---
title: "[转]用于刷新网页的javascript函数"
author: "kim"
date: "2006-12-06T13:08:24Z"
tags: []
slug: "javascript"
draft: false
lastmod: "2006-12-06T13:08:24Z"
id: 37579
url: "https://kim.iteye.com/blog/37579"
---

window.history.go(0)  
window.location.reload()  
window.location.href=location.href  
window.location.assign(location.href)  
document.execCommand('Refresh')  
window.navigate(location.href)  
window.navigate("#pos");  
window.location.replace(location.href)  
window.open('自身的文件','\_self')  
\-------------  
location.reload(flag)  
flag =true 不从缓存读取  
＝false 从缓存读取