history:包括浏览器访问过的 url

属性:返回浏览器访问过的历史记录数

方法:back(); forward(); go(number)

location:包含当前 url 的相关信息

属性:
href:返回完整的url/设置url
search:返回查询部分

方法:
assign(): 加载新文档
reload():重新加载文档,会一直加载当前的页面
replace():用新的文档代替当前文档,无历史记录

screen:记录客户端屏幕有关的信息
属性:width/height, availWidth/availHeight

相关文章:

  • 2021-09-04
  • 2022-01-03
  • 2021-11-26
  • 2022-02-08
  • 2022-03-01
  • 2021-07-13
  • 2021-10-19
  • 2021-11-29
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
  • 2022-01-12
  • 2021-04-26
相关资源
相似解决方案