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.
我有一个包含 7 个单元格和一堆行的表格。我想选择除第 1、第 5 和第 6 之外的所有内容。
我试过:
$('table td:not(eq(5-6)):not(eq(1));
但它没有用。
尝试:
$('table td:not(:eq(1)):not(:eq(5)):not(:eq(6))');
或者:
$('table td:not(:eq(1),:eq(5),:eq(6))');