Jqurey无刷新页面方法,所以js中的刷新页面方法应该写在一个方法里面

function refresh(){
	window.location.reload();
}

 这样写一个方法,然后再去调用。

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 

猜你喜欢

转载自jackmei.iteye.com/blog/2289985