<div id="first"> 外层 <span id="second"> 内层 </span> </div> <script type="text/javascript" src="js/jquery-3.1.1.min.js" ></script> <script> $("#first").click(function(){ console.log("外层") }) $("#second").click(function(event){ event.stopPropagation(); console.log("内层") }) </script>