Comments (3)
这个章节下的2.1有一段代码演示,不过这个应该是css样式出现了问题,文字变成黑色了
document.nodeType // 9
from jstutorial.
2.7Node.nextSibling
有一句说注意,该属性还包括文本节点和评论节点。因此如果当前节点后面有空格,该属性会返回一个文本节点,内容为空格。
老师如何理解评论节点
from jstutorial.
(1)文档的第一个节点是<html>
。
(2)谢谢指出,已经更正。
(3) 评论节点就是注释节点<!-- comment -->
,我改掉了。
from jstutorial.
Related Issues (20)
- jstutorial/bom/window.md 中有个错误 HOT 1
- Array.prototype.splice.call() 并不能把对象转换为含有元素的数组 HOT 1
- storage事件问题 HOT 1
- 同源政策一节多了一个字符 HOT 1
- history对象 HOT 2
- 关于 phantmjs 抓取网页报变量未找到 HOT 1
- 正则表达式部分的一个小错误 HOT 2
- 想咨询一个问题 HOT 1
- contentEditable is readable HOT 4
- 老师,你好,网页版的在手机上排版有点问题 HOT 1
- Element对象这篇文章中offsetHeight描述有误 HOT 1
- Element.getClientRects() 关于行内描述问题 HOT 1
- 关于事件模型中Event.detail中代码示例问题 HOT 1
- 关于KeyboardEvent中代码示例问题 HOT 1
- commonJS规范 第 5节 模块的加载机制 描述有误 HOT 1
- prototype 对象章节 HOT 1
- 错字
- webRTC的一个小问题 HOT 1
- 是 req.params.id 还是 req.params.who HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jstutorial.