jQuery——获取当前索引值

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

posted @ 2012-07-30 12:01  小 伍  阅读(901)  评论(0编辑  收藏  举报