JavaScript㧠switch( s.match( ... ) ){ case /abcd/ : break; case /defg/ : break; } ã¿ããã«ãæåå s ãè¤æ°ã®æ£è¦è¡¨ç¾ã®ã©ã®ãã¿ã¼ã³ã¨ä¸è´ããã®ãã switch æã§ããããããæ¸ãæ¹æ³ãèãã¦ãã¦ãä¸è´ãããã¿ã¼ã³ã®è¦ãç®ã®åããããããèããã¨ãif ã®ç¾ åãããªãã®ããªãã¨æã£ã¦ãããã©ããããªæãã§ãããããªã®ã§ãå¿ããªãããã¡ã¢ã switch( true ){ case /abcd/.test( s ) : break; case /defg/.test( s ) : break; } switch ã®æ¡ä»¶ã true ã¨ããã¢ããã©ã
{{#tags}}- {{label}}
{{/tags}}