单项选择题
以下哪段代码实现了类装饰器?()
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.以上都不对
点击查看答案
相关考题
-
单项选择题
在react组件中获取仓库store数据的高阶组件是()
A.connect()
B.dispatch()
C.reducer -
单项选择题
npm在下载包时采用npm()实现全局安装?
A.npm install
B.npm install-global
C.npm init
D.npm install-g -
判断题
二分查找法是一种高效的搜索方法。
