ES6 else_if 语句 ES6 if_else 语句 ES6 switch_case 语句 ES6 else_if 语句 var num = 2 if(num > 0) { console.log(num+" is positive") } else if(num < 0) { console.log(num+" is negative") } else { console.log(num+" is neither positive nor negative") } ES6 if_else 语句 ES6 switch_case 语句