history对象
常用属性
| 属性名 | 描述 |
|---|---|
history.length |
当前历史网页的个数 |
常用方法
| 方法名 | 作用 |
|---|---|
history.back() |
后退 |
history.forward() |
前进 |
history.go(step) |
前进或后退指定步数,0的话会从缓存中刷新网页 |
发布于 2022-11-12 05-BOM 2070 次阅读
| 属性名 | 描述 |
|---|---|
history.length |
当前历史网页的个数 |
| 方法名 | 作用 |
|---|---|
history.back() |
后退 |
history.forward() |
前进 |
history.go(step) |
前进或后退指定步数,0的话会从缓存中刷新网页 |
Comments NOTHING