Skip to content

Commit b293c7a

Browse files
committed
.. space
1 parent 3a0b87d commit b293c7a

File tree

1 file changed

+2
-0
lines changed
  • 10 - Hold Shift and Check Checkboxes

1 file changed

+2
-0
lines changed

10 - Hold Shift and Check Checkboxes/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@
1515
## 过程指南
1616

1717
1. 获取所有的 `<input>` 元素,并添加事件监听
18+
1819
```js
1920
const boxs = document.querySelectorAll('.inbox input[type="checkbox"]');
2021
boxs.forEach(box => box.addEventListener('click', handleCheck));
2122
```
23+
2224
2. 编写 handleCheck 内部的处理逻辑(细节请看下一部分)
2325

2426
## 解决思路

0 commit comments

Comments
 (0)