📅  最后修改于: 2022-03-11 15:02:30.536000             🧑  作者: Mango
function getClassProperties(instanceOfClass) {
const proto = Object.getPrototypeOf(instanceOfClass);
const names = Object.getOwnPropertyNames(proto);
return names.filter(name => name != 'constructor');
}