美文网首页
History 对象

History 对象

作者: Top_Chenxi | 来源:发表于2016-05-13 09:59 被阅读34次
require(['jquery'], function($) {

    // History 对象
    // History 对象包含用户( 在浏览器窗口中) 访问过的 URL。

    // History 对象属性
    // length 返回浏览器历史列表中的 URL 数量。
    console.log(window.history.length);

    // History 对象方法

    // back() 加载 history 列表中的前一个 URL。
    // window.history.back();

    // forward() 加载 history 列表中的下一个 URL。
    // window.history.forward();

    // go() 加载 history 列表中的某个具体页面。
    // window.history.go(-1);
    // window.history.go(-2);单击两次后退按钮
})

相关文章

  • JavaScriptBOM__History_location(

    目录: 1.History对象 2.location对象 一、History对象 1.什么是History His...

  • history

    History 对象 History 对象包含用户(在浏览器窗口中)访问过的 URL。History 对象是 wi...

  • History in Js

    History 对象 History 对象包含用户(在浏览器窗口中)访问过的 URL。History 对象是 wi...

  • BOM对象(三)———History 对象

    History 对象:History 对象包含用户(在浏览器窗口中)访问过的 URL。History 对象是 wi...

  • History对象

    History对象 History 对象包含用户(在浏览器窗口中)访问过的 URL。 History 对象是 wi...

  • JavaScript基础知识点--BOM之history对象及方

    history 对象 history 对象保存了用户在浏览器中访问页面的历史记录 history 对象方法 bac...

  • history

    window.history属性指向 History 对象,它表示当前窗口的浏览历史。 History 对象保存了...

  • JS History对象

    概述 window.history属性指向History对象,它表示当前窗口的浏览历史。 History对象保存了...

  • BOM(Browser Object Model)

    window.history 返回history对象的引用 window.history.forword() / ...

  • 浏览器内置对象 - history

    Window.history是一个只读属性,用来获取History 对象的引用,History 对象提供了操作浏览...

网友评论

      本文标题:History 对象

      本文链接:https://www.haomeiwen.com/subject/ynnprttx.html