$('.order-delete').on('tap', function (e) {
                 console.log('删除1');
                 console.log(e);
                 e.stopPropagation(); //禁止触发父控件事件
}

JQuery  点击子控件事件,不会触发父控件的事件

 

相关文章:

  • 2021-07-08
  • 2021-09-14
  • 2021-10-26
  • 2022-12-23
  • 2022-12-23
  • 2022-01-25
  • 2022-12-23
  • 2022-02-07
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
  • 2021-09-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案