jQuery - 选择除$(this)父项之外的每个.class成员

A-O*_*-OK 2 jquery

如何选择除$(this)的父级之外的每个类成员?

Ste*_*rex 11

怎么样:

$(".your-class").not($(this).parent())
Run Code Online (Sandbox Code Playgroud)