js判断数据类型的方法
typeoftypeof 返回数据类型,用于判断基本类型,有string,number,undefined,array,object,function,当判断object,array时都会判定为object,有局限性 console.log(typeof('q')) console.log(typeof(11)) console.log(typeof(a)) console.log(typeof([])) console.log(type