最新文章列表

javascript 通过children 获取表格内部的标签内容

通过children[n]、childNodes[n]来获取表格内的标签值     <div id="tupian"><table cellpadding="0" cellspacing="1" border="0" width="100%" id="tabl ...
hebixixi 评论(0) 有2746人浏览 2012-02-28 15:30

ztree 获取当前选中节点的子节点集合

功能:获取当前选中节点的子节点id集合。 步骤:1.获取当前节点            2.用ztree的方法transformToArray()获取当前选中节点(含选中节点)的子节点对象集合。            3.遍历集合,取出需要的值。 treeNode:当前选中节点对象 function getChildNodes(treeNode) {          var child ...
sxu 评论(0) 有5806人浏览 2012-01-15 22:31

DOM基础

第六章  DOM基础 一、使用DOM 1.获取html对象 nodeName\nodeValue\nodeType\ownerDocument\firstChild\lastChild\childNodes\ previousSibling\nextSiling\hasChildNodes\attributes\appendChild\removeChild replaceChild\insertC ...
ErnestChen 评论(0) 有791人浏览 2011-10-22 22:11

childNodes behavior diffrent in IE & FF

IE and FF count in different ways the childNodes. FF (DOM compliant mode) counts even the possible textNodes (the gaps between tags) while IE counts only some of them. To avoid this, use one the solut ...
chujiazhen 评论(0) 有790人浏览 2011-09-02 09:56

parentNode与parentElement区别 childNodes与children区别

parentElement and children is for IE parentNode and childNodes is for all browsers you should use this one to make crossbrowser code http://blog.csdn.net/teresa502/archive/2009/12/08/4962282.aspx
Wuaner 评论(1) 有2802人浏览 2010-08-11 11:47

最近博客热门TAG

Java(141744) C(73651) C++(68608) SQL(64571) C#(59609) XML(59133) HTML(59043) JavaScript(54919) .net(54785) Web(54514) 工作(54118) Linux(50905) Oracle(49875) 应用服务器(43289) Spring(40812) 编程(39454) Windows(39381) JSP(37542) MySQL(37267) 数据结构(36424)

博客人气排行榜

    博客电子书下载排行

      >>浏览更多下载

      相关资讯

      相关讨论

      Global site tag (gtag.js) - Google Analytics