是否类型一致或继承

STD库
Both Server and Client
Both Mobile and PC

判断目标变量是否是某一类型的子类,返回值是一个布尔值

声明

func IsSubTypeOf(target object, type Type) bool
go

参数

输入

名称 类型 描述
目标 Object 被查询的目标变量
类型 Type 被比较的类型

返回

类型 描述
Bool 是否为子类