$(
function(){
$('.tree li').on('click',function(event){
$(this).children('ul').slideToggle();
/*阻止事件冒泡*/
event.stopPropagation();
});
}
)
树形菜单使用slideToggle易产生事件冒泡
最新推荐文章于 2021-03-11 17:49:38 发布