typeof(数据);获取数据类型
如:typeof(2) 输出 number
typeof(null) 输出 object
typeof({}) 输出 object
typeof([]) 输出 object
typeof(function(){}) 输出 function
typeof(undefined) 输出 undefined
typeof('222') 输出 string
typeof(true) 输出 boolean