码迷,mamicode.com
首页 > Web开发 > 详细

web前端面试题

时间:2017-06-13 09:56:27      阅读:148      评论:0      收藏:0      [点我收藏+]

标签:strong   append   nbsp   节点   bsp   get   rem   支持   web   

怎样添加、移除、移动、复制、创建、和查找节点?

添加:appendChild()

移除:removeChild()

移动:replaceChild()

复制:cloneNode()

创建:createElement()

   createTextNode()

查找:getElementByID()

   getElementsByName()

   getElementsByTagName()

   getElementsByClassName()

   //getElementsByClassName()在IE9以上支持

 

web前端面试题

标签:strong   append   nbsp   节点   bsp   get   rem   支持   web   

原文地址:http://www.cnblogs.com/xianbin1996/p/6995147.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!