随笔分类 -  api

摘要:区分innerHeight与clientHeight、innerWidth与clientWidth、scrollLeft与pageXOffset等属性标签:innerheightclientheightinnerwidthclientwidthoffsetleft等window对象:(1)inner... 阅读全文
posted @ 2015-05-05 12:55 麥片
摘要:documentObject.documentElement 返回文档的根节点document.documentElement; //返回 阅读全文
posted @ 2015-05-05 10:50 麥片
摘要:Window_Open详解 引:Window_Open详解一、window.open()支持环境:JavaScript1.0+/JScript1.0+/Nav2+/IE3+/Opera3+二、基本语法:window.open(pageURL,name,parameters) 其中:pageURL 为... 阅读全文
posted @ 2015-04-26 21:40 麥片
摘要:Javascript 的addEventListener()及attachEvent()区别分析 Mozilla中: addEventListener的使用方式: target.addEventListener(type, listener, useCapture); target: 文档节点、d... 阅读全文
posted @ 2015-04-26 19:47 麥片
摘要:document.body的一些用法以及js中的常见问题网页可见区域宽: document.body.clientWidth;网页可见区域高: document.body.clientHeight;网页可见区域宽: document.body.offsetWidth (包括边线的宽);网页可见区域高... 阅读全文
posted @ 2015-04-17 11:11 麥片
摘要:Js:getAttribute[转]一份文档就是一棵节点树。●节点分为不同的类型:元素节点、属性节点和文本节点等。●getElementById()方法将返回一个对象,该对象对应着文档里的一个特定的元素节点。●getElementsByTagName()方法将返回一个对象数组,它们分别对应着文档里的... 阅读全文
posted @ 2015-04-16 18:19 麥片