dump(e) {
const letter = e.target.dataset.letter;
const newLetter = letter.toLocaleLowerCase();
const dom = dd.createSelectorQuery();
dom.select(`.${newLetter}`).boundingClientRect()
dom.selectViewport().scrollOffset()//这段代码的意思是获取页面滑动位置的查询请求
dom.exec((res) => {
if (res[0]) {
dd.pageScrollTo({
scrollTop: res[0].top
复制代码