Created
March 29, 2019 04:42
-
-
Save Olein-jp/9b1be5b7ab6483c06304aafa4b24542e to your computer and use it in GitHub Desktop.
This file contains hidden or 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.matchMedia( '(min-width: 600px)' ).matches){ | |
//画面幅600px以下の場合の処理 | |
} else { | |
// それ以外の処理 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment