Skip to content

Commit

Permalink
docs: root tip
Browse files Browse the repository at this point in the history
  • Loading branch information
lisonge committed Oct 29, 2024
1 parent 369c06b commit 93593a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/optimize.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
根据上面说明的优化, 虽然也只有一次判断, 但是由于 `<<n` 导致内部的子判断也是 n 次, 实际上没有优化判断次数

> [!TIP] 提示
> 实际上从根节点开始匹配的选择器如 `A > B` 都可等价为 `A > @B <<n [parent=null]`
> 实际上从根节点开始匹配并且目标不是根节点的选择器如 `A > B` 都可等价为 `A > @B <<n [parent=null]`
### 祖先节点 {#ancestor}

Expand Down

0 comments on commit 93593a0

Please sign in to comment.