---
title: "JavaScript 刷新页面的几种方法总结"
author: "hlbng"
date: "2011-06-20T09:33:16Z"
tags: []
categories: ["Web前端"]
slug: "javascript"
draft: false
lastmod: "2011-06-20T09:33:16Z"
id: 1098210
url: "https://hlbng.iteye.com/blog/1098210"
---

1\. history.go(0)  
2\. location.reload()  
3\. location = location  
4\. location.assign(location)  
5\. document.execCommand(‘Refresh’)  
6\. window.navigate(location)  
7\. location.replace(location)  
8\. document.URL = location.href