事件名写什么
$("p").click(function(event){ event.stopPropagation(); alert("The p element was clicked."); });
这样就能防止p元素上的事件冒泡到p的父元素
http://www.runoob.com/jquery/event-stoppropagation.html
难怪我写e.stopPropagation()没反应