判断对象有两种格式
1.if(typeof obj == "string"){}
2.if(obj.constructor == "String"){}
判断对象类型表
变量 typeof判断 constructor判断
{an;"obj"} object Object
["an","ary"] array Array
function(){} function Function
"a string" string String
555555 number Number
true boolean Boolean
new User() object User