Vue監聽滾動實現錨點定位(雙向)

這裏很感謝 http://www.jb51.net/article/110325.htm 這篇文章帶來的啓發javascript 可是我和他不一樣,網上的方法都是  這樣計算滾動條距離窗口頂部的距離,注意是窗口,用的是document對象css   // Chrome document.body.scrollTop // Firefox document.documentElement.sc
相關文章
相關標籤/搜索