Last active
June 17, 2020 15:20
-
-
Save smallpaes/77a539be942dca5d254f20958de5333d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 選定頁面上多個狗圖片 | |
const dogImages = document.querySelectorAll('.dog-img') | |
// 透過迴圈設定觀察 | |
dogImages.forEach(image => observer.observe(image)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment