日期:2014-05-16  浏览次数:20354 次

js判断是否是数字

<script language="JavaScript">


if (isNaN(123)){
alert('请输入数字');
}else{
alert('是数字,通过');
}


</script>