$(
".selector:contains('xx')"
)
|
contains()只作匹配查找,不够精确,包含xx的selector和包含xxabc的selector都会查到。
解决办法:
$(
".selector:contains('xx')[innerHTML='xx']"
)
|
$(
".selector:contains('xx')"
)
|
contains()只作匹配查找,不够精确,包含xx的selector和包含xxabc的selector都会查到。
解决办法:
$(
".selector:contains('xx')[innerHTML='xx']"
)
|