var month=prompt('请输入当前月份');
month=parseInt(month);//将字符串类型的数据转换为数值类型
switch(month){
case 12:
case 1:
case 2:
console.log('冬季');
break;
case 3:
case 4:
case 5:
console.log('春季');
break;
case 6:
case 7:
case 8:
console.log('夏季');
break;
case 9:
case 10:
case 11:
console.log('秋季');
break;
default:
console.log('火星来的吧');
break;
}