jQuery——获取当前索引值

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

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