<script> $(".eject_detailBtn").on("click", function(e){ if($(this).next().is(":hidden")){ $(this).next().show(); }else{ $(this).next().hide(); } $(document).one("click", function(){ $(".eject_detail").hide(); }); e.stopPropagation(); }); $(".eject_detail").on("click", function(e){ e.stopPropagation(); }); </script>
How does jQuery hide the menu when clicking on other parts of the page?
Guess you like
Origin blog.csdn.net/wangyanxin928/article/details/52004286
Recommended
Ranking