如何使用jquery刷新页面
时间:2020-02-23 14:46:01 来源:igfitidea点击:
在本教程中,我们将看到如何使用jQuery刷新页面。
我们可以使用jQuery位置来重新加载页面。
它与按F5刷新页面相同。
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Reload/Refresh a Page in jQuery</title>
<script type="text/javascript"
src="http://code.jquery.com/jquery-latest.js">
</script>
<script type="text/javascript">
$(document).ready(function() {
$('#reload').click(function() {
location.reload();
});
});
</script>
</head>
<body>
<input id="reload" type="button" value="reload"
</body>
</html>

