admin管理员组

文章数量:1794759

[Violation] Added non

[Violation] Added non

警告信如下:[Violation] Added non-passive event listener to a scroll-blocking ‘mousewheel’ event. Consider marking event handler as ‘passive’ to make the page more responsive. 解决办法:1、直接在项目终端下载安装npm install default-passive-events 2、在main.js中引入就可以了import "default-passive-events"; //添加事件管理者’passive’,来阻止’touchstart’事件,让页面更加流畅。 解决chrome下的warning问题

本文标签: violationAdded