instanceof

var obj = {}; obj instanceof Object; instanceof 判断的是构造器的prototype是否在对象的原型链上面prototype

相关文章
相关标签/搜索