1.JS基础:instanceof:用来判断对象的类型
<script> var arr=[]; console.log(arr instanceof Array) </script>
打印结果:true
2.JS高级:判断一个函数的原型对象是否在函数的原型链上