Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试选择特定的值。但我遇到了一个问题。
我有两个元素,一个有 XY,另一个有 XY Z。
选择 XYZ 时,我也收到了 X Y 的值...有没有办法让它寻找 X AND Y AND Z 而不是 X OR Y OR Z?
只需将它们组合在选择器中:
$('.classX.classY.classZ');