2.typeof获取到的是产生该对象的根源object,
instanceof获取的是最终产生该对象的父级构造函数
<script> var arr=[1,2,3,4,"骗子"]; var num=1213; console.log(typeof arr); //object console.log(arr instanceof Array); //true console.log(num instanceof Array); //falses </script>