03 2024 档案
摘要:
let arr = [{ id: 123, name: "666" }]; let res = arr((obj, item) => { obj[item.id] = item.name; return obj; }, {}); 结果👆
阅读全文

摘要:
代码: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>d
阅读全文

摘要:
前言:return无法跳出forEach循环? (() => { var a = [1, 2, 3, 4, 5]; a.forEach((e, k) => { if (k == 2) return ""; console.log(k); }); console.log(" forEach retur
阅读全文

摘要:
报错内容: Please enable Developer Mode in your system settings. Run start ms-settings:developers to open settings. 原因:你的开发设备没有开启开发者模式,导致无法编译运行(其实我觉得是因为没有开
阅读全文

摘要:
打开as==》setting==》plugins,然后搜索vscode,接着找到vscode keymap,点击安装 安装完了,点击setting第二个大类选项keymap 最后点击Apply即可生效
阅读全文

摘要:
flutter之真机运行,一直卡在这一步 运行在真机一直没反应,如果是运行在其他端,比如web 就能显示 原因:运行到真机没反应是因为没有识别到手机,哪怕as显示了手机型号,那为什么会识别不到,是因为adb.exe这个程序没有被启用 解决方案:先检查连接到电脑的所有设备号 adb devices 然
阅读全文

摘要:
写在开头,本文是鄙人观看了江协科技发布的51单片机学习视频所作的笔记,仅供参考, 如阅全貌,可入此门:https://www.bilibili.com/video/BV1Mb411e7re/?p=2&share_source=copy_web&vd_source=ee4e581f930845f761
阅读全文

摘要:
这个问题,其实就是文心一言误导了我,它告诉我创建实体类的命令为: nest g entity 你的实体类名称 但实际上,创建实体类应该用class,而不是entity。 所以,解决方案为更正命令,正确命令为: nest g class 你的实体类名称 但是,但是!上面这个命令不会生成entity,你
阅读全文

摘要:
三者皆是用于构建Web应用程序的Node.js框架。 Express: 设计:Express是一个基于回调函数的Web框架,它使用中间件模式来处理请求和响应。它提供了许多内置的中间件,如路由、模板引擎等,并且可以与第三方中间件集成。 功能:Express具有简单、灵活和可扩展的特点。它提供了丰富的A
阅读全文

摘要:
问题描述:nestjs后端开发,遇到跨域问题,打算用express来配合处理,结果引入express的一个模块失败。 app.modules.ts import { MiddlewareConsumer, Module, NestModule } from '@nestjs/common'; imp
阅读全文

摘要:
新建一个跨域中间件(如:cors.middleware.ts),并把它导入到项目根目录的app.modules.ts里面使用。 中间件代码如下: import { Injectable, NestMiddleware } from "@nestjs/common"; @Injectable() //
阅读全文

摘要:
如题,低级错误。具体报错: Could not find TypeScript configuration file "tsconfig.json". Please, ensure that you are running this command in the appropriate direct
阅读全文

摘要:
flutter 官网:https://docs.flutter.dev/ flutter github:https://github.com/flutter/flutter flutter官方开源项目(flutter gallery):https://github.com/flutter/galle
阅读全文
