流浪のwolf

卷帝

导航

上一页 1 2 3 4 5 6 7 8 9 10 ··· 73 下一页

2024年4月10日

threejs渲染基础的3D场景

摘要: // 创建一个场景对象 let scene = new THREE.Scene(); // 创建一个相机对象 let camera = new THREE.PerspectiveCamera(75, window.innerWidth/window.innerHeight, 0.1, 1000); 阅读全文

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

1. 什么是three.js?

摘要: Three.js是一个基于JavaScript编写的开源3D图形库,它使用WebGL技术在网页上渲染3D图形。Three.js提供了许多高级功能,如几何体、纹理、光照、阴影等,以便开发者能够快速地创建复杂且逼真的3D场景。 特点: Three.js具有跨平台性,可以在主要的桌面和移动浏览器上运行,并 阅读全文

posted @ 2024-04-10 13:48 流浪のwolf 阅读(26) 评论(0) 推荐(0) 编辑

nestjs 和 .net DI 使用并注册的区别

摘要: 核心:对象之间的关系 各种 引用 方便使用各种服务 1. .net 注册服务 三种注册方式 build.Service.Addsigtel 单例 瞬时 等 .addSingtel<IUser,User>(); 2. nestjs 注册服务 装饰器 在Services层中注射 @injects 在 M 阅读全文

posted @ 2024-04-10 00:01 流浪のwolf 阅读(1) 评论(0) 推荐(0) 编辑

2024年4月9日

nestjs 登录和验证码结合验证 svgCaptcha 包 session 会话标识

摘要: // ps: 现在用户验证使用 token jwt 了 代替了 session // session 是服务器为每个用户建立的唯一标识 以区分用户 会话标识 // session 是express中的插件 在 nestjs 中依然可以使用 // 使用验证码 包 svgCaptcha /* svgCa 阅读全文

posted @ 2024-04-09 23:55 流浪のwolf 阅读(91) 评论(0) 推荐(0) 编辑

前端面试题axaios携带 cookies

摘要: 配置 axios.default.widthCredentials = true; 阅读全文

posted @ 2024-04-09 23:39 流浪のwolf 阅读(1) 评论(0) 推荐(0) 编辑

2024年4月5日

electon的入口文件 main 指定

摘要: 任何 Electron 应用程序的入口都是 main 文件。 这个文件控制了主进程,它运行在一个完整的Node.js环境中,负责控制您应用的生命周期,显示原生界面,执行特殊操作并管理渲染器进程(稍后详细介绍)。 执行期间,Electron 将依据应用中 package.json配置下main字段中配 阅读全文

posted @ 2024-04-05 16:26 流浪のwolf 阅读(44) 评论(0) 推荐(0) 编辑

axios 常见状态码

摘要: '100': 'Continue', '101': 'SwitchingProtocols', '102': 'Processing', '103': 'EarlyHints', '200': 'Ok', '201': 'Created', '202': 'Accepted', '203': 'No 阅读全文

posted @ 2024-04-05 13:15 流浪のwolf 阅读(67) 评论(0) 推荐(0) 编辑

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) 编辑

上一页 1 2 3 4 5 6 7 8 9 10 ··· 73 下一页