上一页 1 2 3 4 5 6 7 8 9 ··· 15 下一页
  2016年4月21日
摘要: function fn1() { alert(1) } function fn2() { alert(this) } function blind(obj,evname,fn) { if(obj.attachEvent) { obj.attachEvent('on'+evname,function() { fn.call(obj); } ); ... 阅读全文
posted @ 2016-04-21 21:57 hduhdc 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 无标题pj文档 阅读全文
posted @ 2016-04-21 20:58 hduhdc 阅读(118) 评论(0) 推荐(0) 编辑
摘要: window.location。search;表示url?后面的内容 window.lacation.hash;表示url#后面的内容 window.onscroll=function() { } window.onresize=function() { } 阅读全文
posted @ 2016-04-21 19:44 hduhdc 阅读(327) 评论(0) 推荐(0) 编辑
摘要: Browser Object Model 浏览器对象模型 open(地址,打开方式) open('http://www.baidu.com','_self')本窗口打开百度 open('http://www.baidu.com')新的窗口打开百度 open()以新窗口的方式打开新的空白页面 clos 阅读全文
posted @ 2016-04-21 19:35 hduhdc 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 无标题文档 div1 div2 阅读全文
posted @ 2016-04-21 15:59 hduhdc 阅读(280) 评论(0) 推荐(0) 编辑
摘要: ll无标题文档 111111 22222 33333 444444 阅读全文
posted @ 2016-04-21 15:56 hduhdc 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 无标题文档 div1 ppppp 阅读全文
posted @ 2016-04-21 09:43 hduhdc 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 无标题文档 阅读全文
posted @ 2016-04-21 09:41 hduhdc 阅读(109) 评论(0) 推荐(0) 编辑
摘要: function getTop(obj) { var pos={left:0,top:0}; while(obj) { pos.left+=obj.offsetLeft; pos.top+=obj.offsetTop; obj=obj.offsetParent; } return pos; } 阅读全文
posted @ 2016-04-21 09:40 hduhdc 阅读(195) 评论(0) 推荐(0) 编辑
  2016年4月20日
摘要: 元素.parentNode父节点 offsetParent 阅读全文
posted @ 2016-04-20 21:59 hduhdc 阅读(97) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 15 下一页