zoukankan      html  css  js  c++  java
  • DOM 和 BOM 的 对象 和方法

    DOM   对象 有 documet  event element  attlibute

    方法  getElementById   getElementsBytagname  getElementsByclassname    getElementsByname   nodetYpe nodeName  nodeValue  createelement()   

    还有很多如结点的操作

    BOM  对象有window  history  location  screan 

    方法  

    history对象

    history.go() -- 前进或后退指定的页面数 history.go(num);
    history.back() -- 后退一页
    history.forward() -- 前进一页

    navigator对象

    navigator.userAgent -- 返回用户代理头的字符串表示(就是包括浏览器版本信息等的字符串)
    navigator.cookieEnabled -- 返回浏览器是否支持(启用)cookie

    window对象

    alert();

    document.write();

    console.log();

    open();

    close();

    prompt();

    setInterval();

    setTimeout();

    clearTnterval();

    clearTimeout();


    scrollto();

    scrollby();

    scroll();

    本人还是小白 写的东西不多 请多多见谅

  • 相关阅读:
    Codeforces 878A
    Codeforces 873B-Balanced Substring
    codeforces 868C
    51nod 1402 最大值(贪心)
    最小正子段和 贪心
    codeforces 819B
    Codeforces 785D
    Codeforces 864E
    863D
    UVA 1380 A Scheduling Problem
  • 原文地址:https://www.cnblogs.com/calledspeed001/p/6516353.html
Copyright © 2011-2022 走看看