Eg:
function A(){} function B(){} B.prototype = new A();
如何检查B类是否继承A类?
请尝试以下操作:
ChildClass.prototype instanceof ParentClass