摘要: firstChild,lastChild,nextSibling,previousSibling都会将空格或者换行当做节点处理,但是有代替属性所以为了准确地找到相应的元素,会用firstElementChild,lastElementChild,nextElement... 阅读全文
posted @ 2017-03-21 16:23 Mr.Kay 阅读(156) 评论(0) 推荐(0) 编辑
摘要: var ie;if (document.all) ie = true; else ie = false; //判断是否IEdocument.onkeydown = KeyPress; //设置键盘事件函数function KeyPress(){ var key; ... 阅读全文
posted @ 2017-03-21 16:18 Mr.Kay 阅读(395) 评论(0) 推荐(0) 编辑