8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and pr 8000 ivacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
解法: 放棄HTML錨點使用JS錨點
let scrollToAnchor = (anchorName) => { if (anchorName) { let anchorElement = document.getElementById(anchorName); // 要跳轉到的元素 if(anchorElement){ anchorElement.scrollIntoView(); } // 如果對應元素存在,就捲動到該位置 } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
疑難排解
使用了前端路由後與HTML錨點(anchor)衝突
解法: 放棄HTML錨點使用JS錨點
參考
The text was updated successfully, but these errors were encountered: