在实际生产中遇到scrollIntoView滑动卡顿现象
DOM.scrollintoview (behavior : ' smooth ',block: 'nearest ',//'start ',//|'center'|'nend'|幻灯片中
解决方法:取消某些拦截事件
例如:
const img=new window.Image (; img.src=imgUrl; //在其中监听img的onload事件时,本机事件scrollIntoView的幻灯片被阻断; 取消后,img.onload=() ) )把我埋在洞里四个小时。