Home > Backend Development > PHP Tutorial > javascript - jquery append后绑定js怎么解决冒泡问题

javascript - jquery append后绑定js怎么解决冒泡问题

WBOY
Release: 2016-06-06 20:44:19
Original
1171 people have browsed it

怎么ajax里套ajax 怎么解决冒泡问题

回复内容:

怎么ajax里套ajax 怎么解决冒泡问题

贴一个相关的地址http://q.cnblogs.com/q/39975/ 我是复制粘贴党

1.event.stopPropagation(); 事件处理过程中,阻止了事件冒泡,但不会阻击默认行为(它就执行了超链接的跳转)
2.return false; 事件处理过程中,阻止了事件冒泡,也阻止了默认行为(比如刚才它就没有执行超链接的跳转) 还有一种有冒泡有关的:
3.event.preventDefault(); 它的作用是:事件处理过程中,不阻击事件冒泡,但阻击默认行为(它不执行超链接跳转)

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template