给Dom元素添加事件时,有时候会遇到事件冒泡,处理方法如下:

$("#Tab1 .close").live("click", function (event) {
droptab(this);//业务逻辑处理函数 
event.preventDefault();
event.stopPropagation();
return false;
});

 

相关文章:

  • 2022-01-02
  • 2021-08-26
  • 2021-06-21
  • 2021-09-07
  • 2021-06-24
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-15
  • 2021-05-21
  • 2022-12-23
  • 2022-12-23
  • 2021-07-06
相关资源
相似解决方案