以下是对@Injectable()的简单实现
import 'reflect-metadata';function Injectable() {return function (constructor: Function) {Reflect.defineMetadata('injectable', true, constructor);};
}class DependencyInjectionContainer {private instances = new Map();getInstance<T>