---
title: "javascript刷新页面的几种方法"
author: "GoodWell"
date: "2011-09-03T15:28:43Z"
tags: []
categories: ["Web前端"]
slug: "javascript"
draft: false
lastmod: "2011-09-03T15:28:43Z"
id: 1164927
url: "https://goodwell.iteye.com/blog/1164927"
---

Javascript刷新页面的几种方法：  
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