Created
November 6, 2018 07:54
-
-
Save Aliciabcd/f603a753834de5e4f80f58761a01100b 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
if ($(window).width() < 800) { | |
// 當視窗寬度小於800px時執行 | |
// 寫在這裡 | |
} else { | |
// 當視窗寬度不小於800px時執行 | |
// 寫在這裡 | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment