2000年4月30日星期日

JSで数字の判定

// 数字チェック
function isNum(s) 
{
 var patrn=/^[0-9]*$/;

 if(!patrn.exec(s))
 {
  return false
 }
 return true
}

没有评论:

发表评论