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();

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

posted on 2017-03-07 19:19  哈喽树哥  阅读(250)  评论(0编辑  收藏  举报