Skip to main content

One doc tagged with "装饰器"

View All Tags

装饰器

JavaScript 装饰器从模式到提案版本的完整梳理。覆盖装饰者模式、类/属性/方法装饰器、属性描述符(数据描述符与存取描述符),对比 Legacy(Stage 2)与 Standard(Stage 3)两个版本的 API 差异(`(target, name, descriptor)` vs `(value, context)`),以及 MobX、NestJS、Angular、Core-Decorators 等开源库的真实落地场景。