设置刷新按钮
<html>
<head>
<meta charset="UTF-8">
<title>刷新按钮</title>
</head>
<body>
<button id=refresh>刷新</button>
</body>
</html>
<script>
var refresh = document.getElementById("refresh");//获取button按钮属性
refresh.onclick = function(){//构造刷新按钮的点击事件
window.laocation.reload();//刷新页面
//window.history.go(0);//通过 window.history 属性对当前页面进行刷新
}
</script>