LoginSignup
0
0

More than 5 years have passed since last update.

【メモ】jqueryで切り替え

Posted at

今日の学び

2パターンある時にjqueryを使って切り替える方法

$(function(){
    var type = 2;

    if ( type === 1 ){
        //ここにパターン1の指示
    }
    if ( type === 2 ){
        //ここにパターン2の指示
    }   
});
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0