scrollTo(x, y, time, easing):滾動(dòng)到某個(gè)位置,x,y 代表坐標(biāo),time 表示動(dòng)畫(huà)時(shí)間,easing 表示緩動(dòng)函數(shù)scroll.scrollTo(0, 500) scrollToElement(el, time, offsetX, offsetY, easing):滾動(dòng)到某個(gè)元素,el(必填)表示 dom 元素,time 表示動(dòng)畫(huà)時(shí)間,offsetX 和 offsetY 表示坐標(biāo)偏移量,easing 表示緩動(dòng)函數(shù) refr...
www.dbjr.com.cn/article/1336...htm 2025-6-6