Skip to content

Commit fdd4ba2

Browse files
[이벤트 위임] 과제2 해답 번역 - line 1(#1311)
1 parent 6096c1e commit fdd4ba2

File tree

1 file changed

+1
-1
lines changed
  • 2-ui/2-events/03-event-delegation/2-sliding-tree

1 file changed

+1
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
The solution has two parts.
1+
해답은 두 파트로 나뉩니다.
22

33
1. Wrap every tree node title into `<span>`. Then we can CSS-style them on `:hover` and handle clicks exactly on text, because `<span>` width is exactly the text width (unlike without it).
44
2. Set a handler to the `tree` root node and handle clicks on that `<span>` titles.

0 commit comments

Comments
 (0)