ionic 点击事件 防止冒泡 页面多个按钮,点击当前按钮触发其他按钮事件解决方法

  <button (click)="ReportUploads($event,item?.PickProductID)">上传</button>
 ReportUploads($event)
  {
    window.event? window.event.cancelBubble = true : $event.stopPropagation();
  }

 

posted @ 2023-08-18 10:00  3939!  阅读(59)  评论(0编辑  收藏  举报