JS第一节笔记(6)————判断/循环语句(if/else switch/case 三目运算符 for循环 while do while )

判断语句 if else if(判断条件){ } else if(判断条件){ } else{        当上述判断条件都不满足时执行 } if,else if,else为判断语句,当有满足条件时,余下代码不执行 switch var a=     //声明变量a switch(a){ case a:            //执行条件 break;           //结束判断 case
相关文章
相关标签/搜索