原文:vue中,解決chrome下,的warning, Added non-passive event listener to a scroll-blocking ‘mousewheel‘ event 問題

一 警告信息如下:vue element項目中,解決chrome下的passive警告問題 element ui.common.js c : Violation Added non passive event listener to a scroll blocking mousewheel event. Consider marking event handler as passive to ma ...

2021-10-12 15:31 0 977 推薦指數:

查看詳情

element-ui遇到得坑一:Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking handler as 'passive' to make the page more

字面大概意思:在滾動阻止的“ mousewheel”事件添加了非被動事件偵聽器。 考慮將處理程序標記為“被動”以使頁面更具響應性。chrome 瀏覽器檢測機制,給予指定屬性冒事性能就更好。沒法驗證。解決目的:強迫症晚期看不慣 debug 時候有任何的 warning.... 解決 ...

Fri Oct 09 19:24:00 CST 2020 0 1585
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM