之类的,我有以下要素:检查元素包含任何来自阵列
<div class="one two three four five six seven eight"></div>
<div class="one two three four five six seven eight ten"></div>
<div class="one two three four five six seven eight"></div>
<div class="one two three four five six seven eight"></div>
<div class="one two three four five six seven eight eleven"></div>
<div class="one two three four five six seven eight nine"></div>
而下面的JS:
var obj = ['nine', 'ten', 'eleven'];
如何检查是否有这些元素有一个数组中的类?
笛卡尔检查!哇! ':P' –
你是什么意思的“检查”?你只想选择数组中包含类的所有div吗? – alan0xd7
如果你真的认为检查然后https://api.jquery.com/hasclass/将被用于这样的地方 – Huangism