判断一个类是否继承了另外一个类的方法

Object.getPrototypeOf(ColorPoint) === Point
ColorPoint是子类 Point是父类
原文地址:https://www.cnblogs.com/shuaishuaidejun/p/8268960.html