12.history的用法
生活随笔
收集整理的這篇文章主要介紹了
12.history的用法
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
<!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>?
轉(zhuǎn)載于:https://www.cnblogs.com/xiaotaoxu/p/5544558.html
總結(jié)
以上是生活随笔為你收集整理的12.history的用法的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Halocn OCR识别入门学习
- 下一篇: CCTF部分赛题分析