jquery获得数组元素的下标

比如点击id为tbl某一行获得标签下tr的下标

$("#tbl tr").click(
   function(){
   $("#tbl tr").index($(this));
}
)

就可以了

猜你喜欢

转载自liuchang615270.iteye.com/blog/2286020