过滤掉class不是.selected的元素

.filter(":not(:has(.selected))")

原文地址:https://www.cnblogs.com/lixiaoxing/p/4987689.html