Javascript - Using hash on anchors to find offset top

前端 未结 0 506
自闭症患者
自闭症患者 2021-01-19 04:25

I am trying to find the offsetTop from the anchors on the page when clicked. Currently what I have tried is this


let goToLink = document.querySelectorAll(\'a         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题