https://www.w3school.com.cn/js/jsref_isnan.asp isNaN(x) 如果 x 是特殊的非数字值 NaN(或者能被转换为这样的值),返回的值就是 true。如果 x 是其他值,则返回 false。 用isNumber来判断好一些