用工厂函数替换构造函数

refactorgram

leadEngineer = new Employee(document.leadEngineer, 'E');

image/svg+xml

leadEngineer = createEngineer(document.leadEngineer);

别名 用工厂方法替换构造函数