摘要: // 最外层是个函数,再返回一个新的函数 function testDecorator(flag: boolean) { if (flag) { return function (constructor: any) { constructor.prototype.getName = () => { 阅读全文
posted @ 2020-08-03 08:32 wzndkj 阅读(146) 评论(0) 推荐(0) 编辑