首页
Python
Java
前端
数据库
Linux
Chatgpt专题
开发者工具箱
trea专题
滑动时候警告[Intervention] Unable to preventDefault inside passive event listener due to target being trea
1.滑动时候警告[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. 2.解决方案 解决办法1: 在touch的事件监听方法上绑定第三个参数{ passive: false }, 通过传递 passive 为 false 来明确
阅读更多...