jQuery判断当前元素是第几个元素&获取第N个元素

it2025-09-25  3

<button class="qq">111</button> <button class="qq">22</button> <button class="qq">33</button> <button class="qq">44</button>

KaTeX parse error: Expected '}', got 'EOF' at end of input: … console.log((".qq").index(this)) var ind = ( " . q q " ) . i n d e x ( t h i s ) c o n s o l e . l o g ( (".qq").index(this) console.log( (".qq").index(this)console.log((".qq").eq(ind).html()); })

最新回复(0)