Home  >  Article  >  Web Front-end  >  jquery阻止后续事件只执行第一个事件_jquery

jquery阻止后续事件只执行第一个事件_jquery

WBOY
WBOYOriginal
2016-05-16 16:41:021648browse

有时候会遇到 同一个标签上点击后有多个事件,如果只想执行第一个事件而放弃后面的事件,可以加上一段代码来阻止:

click me!
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn