JAVASCRIPT共通関数数値チェック

 数値チェック
数字0~9のチェックを行います。
正規表現を使用しています。

/**********************************************************************************************/
//数値チェック
function NumChk(in_str){ 
  var result = in_str.match(/[0-9 ]*/); 
  if (in_str == result)
     {return true;}
  else
     {return false;}
}
/**********************************************************************************************/
原文地址:https://www.cnblogs.com/aggavara/p/2716233.html