preventDefault()、stopPropagation()、return false 的区别

preventDefault()

  e.preventDefault()阻止浏览器默认事件

stopPropagation()

  e.stopPropagation()阻止冒泡

return false 

  当你每次调用”return false“的时候,它实际上做了3件事情:

  •event.preventDefault();
  •event.stopPropagation();
  •停止回调函数执行并立即返回。

原文地址:https://www.cnblogs.com/leiyangs/p/7002297.html