Skip to content

Commit 6daeb04

Browse files
committed
updata
1 parent 2f38af1 commit 6daeb04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/dom/node.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ while (el !== null) {
175175
```javascript
176176
// HTML 代码如下
177177
// <div id="d1">hello</div><div id="d2">world</div>
178-
var div1 = document.getElementById('d1');
179-
var div2 = document.getElementById('d2');
178+
var d1 = document.getElementById('d1');
179+
var d2 = document.getElementById('d2');
180180

181181
d2.previousSibling === d1 // true
182182
```

0 commit comments

Comments
 (0)