typeof 返回
string,number,Boolean,undefined,function,object
对象与数组的判断:
instanceof
array.isarray()
object.prototype.toString.call()
.constructor==Object
typeof null为object
typeof 返回
string,number,Boolean,undefined,function,object
对象与数组的判断:
instanceof
array.isarray()
object.prototype.toString.call()
.constructor==Object
typeof null为object