在JavaScript中验证十进制数的最干净、最有效的方法是什么?
奖励积分:
测试用例:
01. IsNumeric('-1') => true02. IsNumeric('-1.5') => true03. IsNumeric('0') => true04. IsNumeric('0.42') => true05. IsNumeric('.42') => true06. IsNumeric('99,999') => false07. IsNumeric('0x89f') => false08. IsNumeric('#abcdef') => false09. IsNumeric('1.2.3') => false10. IsNumeric('') => false11. IsNumeric('blah') => false