📌  相关文章
📜  检查值是否为数字 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:26.806000             🧑  作者: Mango

代码示例1
if(isNaN(num1))
OR:
if(typeof num1 == 'number'){
    document.write(num1 + " is a number 
"); }else{ document.write(num1 + " is not a number
"); }