Skip to content

使用 TreeWalker 遍历 DOM nodes? #10

@mozbugbox

Description

@mozbugbox

现在自动生成的页面有越来越多的node, 通过递归函数遍历DOM会占用大量堆栈,而且也影响速度。可以试试使用 TreeWalker 看看是否会加快速度,减少运存使用量。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions