function Car(){

}
var car=new Car()

function Person(){

}
console.log(car instanceof Car)
console.log(car instanceof Object)
console.log([] instanceof Array)
console.log([] instanceof Object)
console.log({} instanceof Object)

运行结果

 

Logo

前往低代码交流专区

更多推荐