用jquery 刷新 重新加载页面

我们可以使用 jquery location.reload()函数来刷新或者重新加载页面

<html>
<head>
<title>Refresh a page in jQuery</title>
 
<script type="text/javascript" src="js/jquery-1.6.4.min.js"></script>
 
</head>
 
<body>
 
<button id="PageRefresh">Refresh a Page in jQuery</button>
 
<script type="text/javascript">
 
	$('#PageRefresh').click(function() {
 
    	      location.reload();
 
	});
 
</script>
 
</body>
</html>

“用jquery 刷新 重新加载页面”的10个回复

  1. I see you don’t monetize your site, don’t waste your
    traffic, you can earn extra cash every month.
    You can use the best adsense alternative for any type of website
    (they approve all websites), for more info simply search in gooogle: boorfe’s tips monetize your website

发表评论

电子邮件地址不会被公开。 必填项已用*标注