[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See
最近写代码遇到了这个问题,找了好多解决方法,终于成功了
document.addEventListener(‘touchmove’, function(e) {
e.returnValue = true;
}, false);
浏览器默认事件报错
最新推荐文章于 2024-03-28 09:57:56 发布