1. instanceof运算符

1.1. 语法:

对象 instanceof 类

1.2. 返回值:

  1. 对象 为 类的实例化对象时为ture
  2. 对象 为 类的子类 的实例化对象时为ture