isNaN() 确认是否是数字

isNaN(x):

当变量 x 不是数字,返回 true

当变量 x 是其他值,(比如,1,2,3),返回false。

 

 

posted @ 2016-10-08 14:56  万里冰封  阅读(229)  评论(0编辑  收藏  举报