jQuery——获取当前索引值

$("li").hover(function(){ 
alert($("li").index(this)); 
}); 

原文地址:https://www.cnblogs.com/picaso/p/2615036.html