mewcoder / fe-kill100

⚔️ 前端百题斩
https://fe-kill100.vercel.app/
1 stars 0 forks source link

遍历DOM树 #86

Open mewcoder opened 2 years ago

mewcoder commented 2 years ago

写一个函数遍历 DOM 树,分别用深度优先和广度优先

mewcoder commented 2 years ago

https://github.com/mewcoder/code-practice/blob/main/04-html/04-dom-traverse.html