// 原型,方法名,参数所在的位置function paramDecorator(target: any, method: string, paramIndex: number) {console.log(target, method, paramIndex);}class Test {getInfo(name: string, @paramDecorator age: number) {console.log(name, age);}}const test = new Test();test.getInfo('Dell', 30);
