<!DOCTYPE html>
<html>
<head>
<title>javascript01.html</title>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is my page">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
<script type="text/javascript">
console.log('测试historyBack');
</script>
</head>
<body>
<a href="#" onclick="window.history.back()">返回</a> <!-- back()是一个方法可以直接这样写 -->
</body>
</html>
JS history(二) 返回上一页
最新推荐文章于 2024-09-24 08:45:00 发布