JQuery查询ul嵌套结构中当前所处的位置 alert($(this).parents("#"+divName+">li").last().index() + ","+$(this).parents("#"+divName+">li>ul>li").last().index());