会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
jeasion
博客园
首页
新随笔
新文章
联系
管理
订阅
2018年2月14日
firstchild.data与childNodes[0].nodeValue意思
摘要: x.firstchild.data:获取元素第一个子节点的数据;x.childNodes[0]::获取元素第一个子节点;x.childNodes[0].nodeValue.:也是获取元素第一个子节点值的意思另外在 DOM 处理中一个普遍的错误是,认为元素节点包含文本。...
阅读全文
posted @ 2018-02-14 17:05 jeasion
阅读(287)
评论(0)
推荐(0)
编辑
公告