Skip to content

exercise20-beace#4

Open
Beace wants to merge 2 commits into
FE-star:masterfrom
Beace:master
Open

exercise20-beace#4
Beace wants to merge 2 commits into
FE-star:masterfrom
Beace:master

Conversation

@Beace

@Beace Beace commented Nov 15, 2018

Copy link
Copy Markdown

No description provided.

@miniflycn

Copy link
Copy Markdown
Member

可以优化下

@Beace

Beace commented Nov 15, 2018

Copy link
Copy Markdown
Author

感觉去遍历节点和循环添加事件都有些复杂度和性能损伤,纠结中...有什么点子可以点播下么 @miniflycn

@miniflycn

Copy link
Copy Markdown
Member

sorry,没仔细看,以为没有 parentNode,或者 parentElement 的方法都是错的,后来发现你们使用的是event.path,这个可以,但是好像不兼容所有浏览器。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants