`
- 浏览:
113305 次
- 性别:
- 来自:
福建
-
history 对象是window 对象的另一个子对象。这个对象保存着当前地址之前和之后访问过的网址信息,它包括了到达前一地址和后一地址的方法。
history 对象有一个可以访问的属性:
- history.length 保存了历史列表的长度—换句话说,就是用户访问过的不同地址的数目。
history 对象有 current、previous 和 next 三个属性,用来储存历史列表中的 URL。但是,为了安全和隐私起见,这些对象在现在的浏览器中不能正常访问。
history 对象提供了三个方法来访问历史列表:
- history.go() 打开历史列表中一个网址。要使用这个方法,必须在括号内指定一个正数或负数。例如 history.go(-2) 相当于按“后退”按钮两次。
- history.back() 载入历史列表中前一个网址,相当于按下“后退”按钮。
- history.forward() 载入历史列表中后一个网址(如果有的话),相当于按下“前进”按钮
History 对象属性
属性
描述
IE
F
O
length |
返回浏览器历史列表中的 URL 数量。 |
4 |
1 |
9 |
History 对象方法
方法
描述
IE
F
O
back() |
加载 history 列表中的前一个 URL。 |
4 |
1 |
9 |
forward() |
加载 history 列表中的下一个 URL。 |
4 |
1 |
9 |
go() |
加载 history 列表中的某个具体页面。 |
4 |
1 |
9 |
方法
描述
IE
F
O
back() |
加载 history 列表中的前一个 URL。 |
4 |
1 |
9 |
forward() |
加载 history 列表中的下一个 URL。 |
4 |
1 |
9 |
go() |
加载 history 列表中的某个具体页面。 |
4 |
1 |
9 |
分享到:
Global site tag (gtag.js) - Google Analytics
相关推荐
The History Object Section 13.11. Multiple Windows and Frames Chapter 14. The Document Object Section 14.1. Document Overview Section 14.2. Dynamically Generated Documents Section 14.3. ...
Delving into the history, philosophy, and even politics of object-oriented programming, West reveals how the best programmers rely on analysis and conceptualization—on thinking—rather than formal ...
var History = require ( 'object-history' ) var initial = { foo : 'bar' , name : 'victoria' } var history = new History ( initial , { limit : 33 } ) 添加历史点对象 参数 obj {Object} : 历史点 例子 ...
Analyzing the Evolutionary History of the logical design of object-oriented software
通过管理员相关操作更改了ARSystem工作流程对象的工作流程定义历史记录。 以“补救”形式保留所有对象定义的运行历史记录。
HistoryOfObjectRecognition , 物体检测网络进化历史,
24.15 APPENDIX: A HISTORY OF TAXONOMY 864 EXERCISES 869 Chapter 25: Useful techniques 871 25.1 DESIGN PHILOSOPHY 871 25.2 CLASSES 872 25.3 INHERITANCE TECHNIQUES 873 Chapter 26: A sense of style 875 ...
keras中的fit_generator和fit函数均返回History对象... Callback that records events into a `History` object. This callback is automatically applied to every Keras model. The `History` object gets returne
• A Brief History • The Pattern Community • An Invitation • A Parting Thought Glossary Guide to Notation • Class Diagram • Object Diagram • Interaction Diagram Foundation Classes ...
深入了解React,Redux和React-Router ... Router - provides specialized history object 2. Route/Switch 3. Link/NavLink - Navlink is special kind of Link that can style itself as active 为什么要使用F
Now that we’ve discussed the history of dynamic Web applications and introduced Ajax, it’s time to cover the heart of the matter: how to use the XMLHttpRequest object. While Ajax is more of a ...
历史对象观察对象修改,因此也可以撤消和重做对象操作。
2.16 Combining Imperative and Object-Oriented Features: C++ 101 2.17 An Imperative-Based Object-Oriented Language: Java 104 2.18 Scripting Languages: JavaScript, PHP, and Python 108 2.19 A C-...
Usage: ./csv_exadata_metrics_history.pl [cell = | groupfile = ] [serial] [type = ] [name = ] [objectname = ] [name != ] [objectname != ] [ago_unit = ] [ago_value = ] Parameter Comment
Object-oriented programming:Some history, and challenges for the next fifty yearsAndrew P. BlackPortland State University, Portland, Oregon, USAAbstractObject-oriented programming is inextricably ...
Consider the work of a future software archeologist, tracing the history of computing. The fossil record will likely show clear strata: here is a layer formed of assembly language artifacts, there is ...
Creating a History with Cookies Drag and Drop Chapter 19. Usability Patterns Handling Feedback, Errors, and Warnings Part V: Server-Side Interaction Chapter 20. Understanding Ajax Database ...
我们可以用 Array 和 Object 来实现浏览器的前进后退功能。具体原理可参见代码中的注释。h5路由通过在 window 对象上监听 popstate 事件,注:调用history.pushState()或者history.replaceState()不会触发popstate...
A Simple Cocoa Command-Line Tool 55 Object-Oriented Programming with Objective-C 56 The Objective-C Advantage 56 The Dynamism of Objective-C 57 Extensions to the Objective-C Language 58 Using ...
protected void btnZhunce_Click(object sender, EventArgs e) { //Page.Response.Redirect("zhuce.aspx"); Response.Write("<script lanuage=javascript>alert('登录成功!');location='javascript:history.go(-...