判断是否是NaN

if (isNaN(parseInt(x))) {

alert("非数字");

else{

alert("数字");

}

posted @   boyanh  阅读(918)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示