asdf131 获取类型的名称可以通过 class.name || class。toString().match(/function\s*([^(]*)\(/)[1]; 但是获取对象的名称 对象.constructor.name 存在兼容问题