2014年2月19日

js区别IE6、IE7、IE8之间的方法

摘要: js区别IE6、IE7、IE8之间的方法:var isIE=!!window.ActiveXObject;var isIE6=isIE&&!window.XMLHttpRequest;var isIE8=isIE&&!!document.documentMode;var isIE7=isIE&&!isIE6&&!isIE8;if (isIE){ if (isIE6){ alert(”ie6″); }else if (isIE8){ alert(”ie8″); }else if (isIE7){ alert(”ie7″); }} 阅读全文

posted @ 2014-02-19 17:17 < Angus > 阅读(361) 评论(0) 推荐(0) 编辑

js操作节点

摘要: js操作节点(添加、删除、更改属性)1.创建节点并添加内容:使用的方法:createElement和createTextNode HTML DOM 2,删除节点 方法:getElementsByTagName和removeChild HTML DOM hello world!3.替换节点 方法replace(new,old) HTML DOM hello world!4.插入新消息 insertBefore(new,old) HTML DOM hello world!5,文档碎片 HTML DOM hello world!6,操作document元素... 阅读全文

posted @ 2014-02-19 16:02 < Angus > 阅读(218) 评论(0) 推荐(0) 编辑

导航