zoukankan      html  css  js  c++  java
  • 12.history的用法

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
      <title> 演示示例:history的用法 </title>
      <meta http-equiv = "content-type" content ="text/html;charset=utf-8" /> 
      <meta name="keywords" content="">
      <meta name="description" content=""> 
     </head>  
     <body> 
       <h3>Home页面</h3>
      <a href="home.html">home</a><br/>
      <a href="page01.html">page01</a> <br/>
      <a href="javascript:history.forward();">forward()前进一页面</a><br/>
      <a href="javascript:history.go(1);">go(1)前进一页面</a> <br/>
       
    
    
     </body>
    </html>

    上面是home.html

    下面是page01.html

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
      <title> 演示示例:history的用法 </title>
      <meta http-equiv = "content-type" content ="text/html;charset=utf-8" /> 
      <meta name="keywords" content="">
      <meta name="description" content=""> 
     </head>  
     <body> 
      <h3>page01页面</h3>
      <a href="home.html">home</a><br/>
      <a href="javascript:window.history.back();">back()返回上一页面</a><br/>
      <a href="javascript:window.history.go(-1);">go(-1)返回上一页面</a>
         
    
    
    
     </body>
    </html>
  • 相关阅读:
    Qt 学习之路 2(39):遍历容器
    Qt 学习之路 2(38):存储容器
    JS 格式化日期
    springboot 核心注解
    Java 生成随机数 Random、SecurityRandom、ThreadLocalRandom、Math.random()
    验证码 easy_captcha
    读过的书籍
    typora 常用快捷键
    kafka 遇到的问题
    老男孩Linux 运维
  • 原文地址:https://www.cnblogs.com/xiaotaoxu/p/5544558.html
Copyright © 2011-2022 走看看