1.isNaN():缺点: null、空格以及空串会被按照0来处理 2.typeof (): 缺点:typeof(NaN) 也等于number 所以:typeof value === 'number' && !isNaN(value);