获取第几个
$('#test').find('img').index(this)
checkbox的attr无效,使用prop
prop("checked", true)
jquery获取ojbect HTMLDivElement
$('#test')[0]
选择最后一个元素
eq(-1)
获取第几个
$('#test').find('img').index(this)
checkbox的attr无效,使用prop
prop("checked", true)
jquery获取ojbect HTMLDivElement
$('#test')[0]
选择最后一个元素
eq(-1)