单项选择题
以下关于属性装饰器第一个参数描述错误的是()
A.对于静态成员来说是类的构造函数
B.对于实例成员是类的原型对象。
C.成员的名字
D.第一个参数不是对象就是函数
点击查看答案
相关考题
-
单项选择题
以下关于属性装饰器描述错误的是()
A.属性装饰器声明在一个属性声明之前(紧靠着属性声明)
B.属性装饰器可以用在声明文件中(.d.ts)
C.属性装饰器表达式会在运行时当作函数被调用
D.属性装饰器表达式,传入2个 -
单项选择题
以下哪段代码实现了类装饰器?()
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
