欢迎来到财会考试题库网 财会考试题库官网
logo
全部科目 > 大学试题 > 计算机科学 > Java考试 > JavaScript考试

单项选择题

以下哪段代码实现了类装饰器?()

    A.function configurable(value: boolean) { return function (target: any, propertyKey: string, descriptor: PropertyDesc descriptor.configurable = value; }; }
    B.function enumerable(value: boolean) { return function (target: any, propertyKey: string, descriptor: PropertyDescr descriptor.enumerable = value; }; }
    C.function color(value: string) { return function (target) { } }
    D.以上都不对

点击查看答案

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题