/ Published in: JavaScript
URL: http://www.usamimi.info/~geko/arch_pro/0x002_js/10_isNumber/index.html
Expand |
Embed | Plain Text
function isNumber( _str,isInt) { var str,num; str = String(_str); if( isNaN( str ) )return false; num = eval( str ); if( isInt==null )return true; else if( isInt )if( num!=parseInt(num) )return false; return true; }
You need to login to post a comment.
