• 2024-06-01ts 装饰器测试
    interfacemycbdInterface{alert(name:string):void,one?:string}//函数装饰器constmyconsole:MethodDecorator=(...rest)=>{console.log(rest,"rest")}//类装饰器constmylog2:ClassDecorator=(target)=>{console.log(target,