$("#classname li").click(function(){ if($("li:eq(0)").is($(this))){ alert("0"); }; });//该片段来自于http://www.codesnippet.cn/detail/220720134738.html
来源: http://www.codesnippet.cn/detail/220720134738.html