简体   繁体   English

快速jQuery问题:停止事件传播?

[英]Quick jQuery question: Stopping event propagation?

I have a set of elements that respond to mouseUp events, and inside of them are child elements that respond to mouseUp events as well (all via. jQuery). 我有一组响应mouseUp事件的元素,并且它们内部也是响应mouseUp事件的子元素(所有通过.jQuery)。 How do I make it so when a child's mouseUp event occurs from a user mouse click the child's parent's mouseUp event doesn't also occur in jQuery? 如何在用户鼠标单击时发生孩子的mouseUp事件时,jQuery中也不会出现孩子的父母的mouseUp事件?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM