设定 [] {} ‘’ null 0 表示为空
这里需要注意 null 和 undifined 和 NaN
通过typeof判断值的类型
这里需要注意,null [] {} 都属于object NaN属于number
通过isFinite()排除NaN
通过循环排除 [] {} null