<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<button id="btn">下一个页面</button>
<button id="btn2">刷新</button>
<script>
// 地址信息
console.log(location.href)
btn.onclick = function(){
location.href = "http://www.baidu.com"
}
// reload重新加载页面
btn2.onclick = function(){
location.reload()
}
</script>
</body>
</html>
10-04
518