这时可用typeof()来判断变量是string 还是number来区分0和“”,
typeof(undefined) == 'undefined' typeof(null) == 'object' typeof("") == 'string' typeof(0) == 'number' typeof(false) == 'boolean'