<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=, initial-scale=1.0">
<title>测试网页</title>
</head>
<body>
<div>hello world11111</div>
<button id="btn">history.back()</button>
<script>
btn.onclick = function(){
// history.back()
history.go(-1)
}
// alert("hello world")
// 调动浏览器自带的弹出hello world
document.write("hello world")
//输出内容到网页hello world
console.log("hello world")
// 控制台输出hello world
</script>
</body>
</html>
10-04
582
10-17