js写出一条判断数字和运算式的if判断var num = prompt("请输入一个数字","")function fun(num){var a = parseInt(num)switch(a%2){case 0:document.wri2023-03-03JavaScript170