set home page
Added to the favorites
All articles(网络文学目录)
All Pictures(图片目录)
All Softwares(软件目录)
javascript函数,判断数字的合法性_JavaScript技术_编程技术
Writer:
delv
Article type:
Programming skills(编程技巧)
Time:
2013/12/31 6:34:44
Browse times:
369
Comment times:
0
javascript函数,判断数字的合法性_JavaScript技术_编程技术
Head photo
Go homepage
Upload pictures
Write articles
javascript函数 判断数字的合法性_JavaScript技术_编程技术-你的首页-uuhomepage.com
//验证是否为数字
function isNumber(oNum)
{
if(!oNum) return false;
var strP=/^\d+(\.\d+)?$/;
if(!strP.test(oNum)) return false;
try{
if(parseFloat(oNum)!=oNum) return false;
}
catch(ex)
{
return false;
}
return true;
}
There are 0 records,
Comment:
Must be registered users to comment(必须是注册用户才能发表评论)
Comments can't is empty(评论不能为空)
Disclaimer
Privacy Policy
About us
Site Map
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.