Skip to content

sibling方法选取的结果不仅是同级的,还包括了次级的(即child级的) #112

@Rishon33

Description

@Rishon33

Image在查找”去领取“的同级时,使用sibling()会包括进次级的所有元素,用sibling().count()方法会显示包括次级的总数量,希望sibling()能只包含同级元素。
比如:如图,“去领取”的同级应该只有3个元素(含自己),但.count()显示有7个,如果用sibling(index=1),则.count()显示2,包括了次级的一个index=1的元素。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions