JS history(二) 返回上一页

来源:互联网 发布:c语言中的指针是什么 编辑:程序博客网 时间:2024/06/05 01:09
<!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>
原创粉丝点击