📅  最后修改于: 2022-03-11 15:02:26.806000             🧑  作者: Mango
if(isNaN(num1))
OR:
if(typeof num1 == 'number'){
document.write(num1 + " is a number
");
}else{
document.write(num1 + " is not a number
");
}