流浪のwolf

卷帝

导航

2024年4月3日

nextjs 的函数,参数,属性装饰器的使用

摘要: // 属性装饰器 const doc1:PropertyDecorator = (target:any,val: string | symbol) => { console.log(target); console.log(val); val = "覆盖"; } // 方法装饰器 const doc 阅读全文

posted @ 2024-04-03 21:19 流浪のwolf 阅读(13) 评论(0) 推荐(0) 编辑

nextjs 类装饰器

摘要: // 类装饰器 == 本质就是一个函数 // 在某个类的上面使用 @ // 可以等价于函数调用 doc(Zlx) // 不会破坏原有的类 可以扩展类 // "experimentalDecorators": true, 需要配置这个东西 const doc:ClassDecorator = (tar 阅读全文

posted @ 2024-04-03 21:07 流浪のwolf 阅读(13) 评论(0) 推荐(0) 编辑

使用 Debugger 断点 如果打开了断点调试 就会跳转空白页面

摘要: <!DOCTYPE html> <html> <header> <title>test</title> </header> <body> <h1>test</h1> </body> <script> setInterval(function() { var startTime = performan 阅读全文

posted @ 2024-04-03 16:10 流浪のwolf 阅读(40) 评论(0) 推荐(0) 编辑

jwt实现登录 和 接口实现动态权限

摘要: [Authorize] using Microsoft.AspNetCore.Authorization; 登录的 DTO namespace login; public class WeatherForecast { public DateOnly Date { get; set; } publi 阅读全文

posted @ 2024-04-03 14:34 流浪のwolf 阅读(14) 评论(0) 推荐(0) 编辑