网站首页
编程语言
数据库
系统相关
其他分享
编程问答
tabc
2024-06-01
ts 装饰器测试
interfacemycbdInterface{alert(name:string):void,one?:string}//函数装饰器constmyconsole:MethodDecorator=(...rest)=>{console.log(rest,"rest")}//类装饰器constmylog2:ClassDecorator=(target)=>{console.log(target,