【JQuery】如何判断是否为数字?

var InputValue = $("#Input").val();
if(!isNaN(InputValue)){
   alert("都是数字");
}else{
  alert("不全是数字!");
}

Author: jhonse

Jhonse技术博客: http://blog.jhonse.com

Leave a Reply

Your email address will not be published. Required fields are marked *