判断一个对象与构造函数是否在一个原型链上
const Person = function () {}; const p1 = new Person(); p1 instanceof Person; // true var str = "hello world"; str instanceof String; // false var str1 = new String("hello world"); str1 instanceof String; // true