当前位置: 代码迷 >> 综合 >> vue事件穿透问题
  详细解决方案

vue事件穿透问题

热度:82   发布时间:2024-02-10 22:03:47.0
在原生中使用el.addEventListener("touchstart", () => { console.log("ok"); }, false);
在 vue 中使用<button @touchstart="handleTouchstart()">点击</button>

 

  相关解决方案