点击li任意项下拉隐藏-toggle

1点击事件传e,获取对应项index,对此项做出其他动作

$('.hot_zone_wrap').on('click', '.hot_news_title', function(e){
       var index = $(".hot_zone_wrap .hot_news_title").index(e.currentTarget);
       $($('.hot_news_content')[index]).toggle();
})

posted on 2018-09-06 10:08  妍若菲  阅读(93)  评论(0编辑  收藏  举报

导航