Skip to content

Commit 7bf9f88

Browse files
authored
Merge pull request wangdoc#99 from strawHatYz/master
updata Node.prototype.previousSibiling
2 parents d0bcc7f + 6daeb04 commit 7bf9f88

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)