Replies: 2 comments 3 replies
-
关于这个你可以自己用一段时间看看,听别人说不如自己尝试一下,要是觉得耗电多或者卡顿你可以选择卸载 |
Beta Was this translation helpful? Give feedback.
1 reply
-
此外后者更慢,因为第一个的复杂度是 O(1) 每次只需要判断父节点,而第二个的是 O(n) 每次需要判断所有子节点 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
一般的CSS选择器是这样的,
a>b
,声明a祖先节点指向b子节点https://i.gkd.li/snapshot/1712231115916?gkd=QFt2aWQ9Im1lbnUiXSA8IFt2aWQ9Im1lbnVfY29udGFpbmVyIl0gLSBbdmlkPSJkb3RfdGV4dF9sYXlvdXQiXSA-IFt0ZXh0Xj0i5bm_5ZGKIl0
gkd若要指向子节点,是写成
@[vid="menu"] < [vid="menu_container"]
,感觉方向都反了用惯了adb或ublock origin的语法规则,CSS选择路径,语法一般是
[text^="广告"]>*...>@按钮
类似的风格关于耗电,bilibili视频的评论区很多人讨论耗电异常,请问这个App的最近一次更新,是否已改善耗电和卡顿情况?
https://www.bilibili.com/video/BV1VN411j7TR/?vd_source=b3d0a9a3b7325ec08e0c118a9095a146
Beta Was this translation helpful? Give feedback.
All reactions