你瞅啥呢
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 43 下一页
摘要: 2024-03-06 记录express、koa、nest等三个node框架的区别 三者皆是用于构建Web应用程序的Node.js框架。 Express: 设计:Express是一个基于回调函数的Web框架,它使用中间件模式来处理请求和响应。它提供了许多内置的中间件,如路由、模板引擎等,并且可以与第三方中间件集成。 功能:Express具有简单、灵活和可扩展的特点。它提供了丰富的A 阅读全文
posted @ 2024-03-06 17:22 叶乘风 阅读(874) 评论(0) 推荐(0)
摘要: 2024-03-06 Module '"@nestjs/platform-express"' has no exported member 'ExpressModule'.找不到ExpressModule这个模块 问题描述:nestjs后端开发,遇到跨域问题,打算用express来配合处理,结果引入express的一个模块失败。 app.modules.ts import { MiddlewareConsumer, Module, NestModule } from '@nestjs/common'; imp 阅读全文
posted @ 2024-03-06 11:32 叶乘风 阅读(105) 评论(0) 推荐(0)
摘要: 2024-03-06 NestJs学习日志之跨域 新建一个跨域中间件(如:cors.middleware.ts),并把它导入到项目根目录的app.modules.ts里面使用。 中间件代码如下: import { Injectable, NestMiddleware } from "@nestjs/common"; @Injectable() // 阅读全文
posted @ 2024-03-06 11:27 叶乘风 阅读(145) 评论(0) 推荐(0)
摘要: 2024-03-06 NestJs学习日志之新建nest项目,运行启动命令nest start报错:Could not find TypeScript configuration file "tsconfig.json". ==》你应该在nest项目里面运行启动命令,而不是其他的目录 如题,低级错误。具体报错: Could not find TypeScript configuration file "tsconfig.json". Please, ensure that you are running this command in the appropriate direct 阅读全文
posted @ 2024-03-06 10:19 叶乘风 阅读(286) 评论(0) 推荐(0)
摘要: 2024-03-05 flutter学习笔记(win10环境之创建第一个flutter应用) flutter 官网:https://docs.flutter.dev/ flutter github:https://github.com/flutter/flutter flutter官方开源项目(flutter gallery):https://github.com/flutter/galle 阅读全文
posted @ 2024-03-05 18:01 叶乘风 阅读(193) 评论(0) 推荐(0)
摘要: 2024-02-27 新建uni项目【uni-ui模板】在pc端浏览发现无法选中文本 ==》 给页面的.uni-body类设置user-select: text;即可 rt,请在全局样式中加入: .uni-body { user-select: text; } 即可,text表示选中文本,none表示禁止选中文本,本来我想在uni-modules中修改user-select的值,发现无效,遂在App.vue中修改了全局样式。 阅读全文
posted @ 2024-02-27 10:35 叶乘风 阅读(98) 评论(0) 推荐(0)
摘要: 2024-02-22 记录一则NW.js桌面开发 nw.js,一个和Electron类似的桌面开发框架,相较于后者,我认为前者在打包这块更快速、简便。 在开发前,先把nw的环境给配置好,前往nw的官网下载:http://nwjs.org.cn/download.html 2025-02-21 更新:上面的链接似乎无法打开了,nw的官网似乎换地址了: 阅读全文
posted @ 2024-02-22 10:41 叶乘风 阅读(544) 评论(0) 推荐(0)
摘要: 2024-02-21 js 工具类(一行代码) 1. 获取浏览器 Cookie 的值 const cookie = name => `; ${document.cookie}`.split(`; ${name}=`).pop().split(';').shift(); cookie('_ga'); // Result: "GA1.2.192973 阅读全文
posted @ 2024-02-21 17:08 叶乘风 阅读(52) 评论(0) 推荐(0)
摘要: 2024-02-20 随机生成30位字符串 function generateRandomString() { let specialChars = "`~!@#$%^&*-+=_|{}[]:;'<>,.?/"; let lowercaseLetters = 'abcdefghijklmnopqrstuvwxyz'; let uppercas 阅读全文
posted @ 2024-02-20 13:53 叶乘风 阅读(82) 评论(0) 推荐(0)
摘要: 2024-01-26 yarn证书源过期 ==》 yarn切换的镜像源为https,实际上该链接的证书已过期,应该改为http 如,我给一个项目用yarn装依赖,这时候报错: yarn install v1.22.21 info No lockfile found. [1/4] Resolving packages... error Error: certificate has expired at TLSSocket.on 阅读全文
posted @ 2024-01-26 15:36 叶乘风 阅读(1919) 评论(0) 推荐(1)
摘要: <!DOCTYPE NETSCAPE-Bookmark-file-1> <!-- This is an automatically generated file. It will be read and overwritten. DO NOT EDIT! --> <META HTTP-EQUIV=" 阅读全文
posted @ 2024-01-26 10:26 叶乘风 阅读(15) 评论(0) 推荐(0)
摘要: 2024-01-16 Antd的TreeSelect如何通过筛选显示对应项 <TreeSelect showSearch={true} placeholder="请选择" allowClear treeData={data} filterTreeNode={(inputValue: any, treeNode: any) => { return treeNode.title 阅读全文
posted @ 2024-01-16 14:20 叶乘风 阅读(253) 评论(0) 推荐(0)
摘要: 2024-01-15 【第三方平台开发小程序】无法保存图片?==&gt;检查隐私协议 问题:打开小程序,点击保存一张图片,微信会弹出弹窗,提示你需要授权保存相册的权限,然后我点确定跳到授权页面,却发现微信的设置里没有出现保存相册的开关。 注意:第三方平台开发小程序,不是普通的单独开发小程序。 ps:如果是在开发版开了调试,然后再去生产版点保存是可以保存成功的,那个保存图片的开关能显示 阅读全文
posted @ 2024-01-15 16:41 叶乘风 阅读(714) 评论(0) 推荐(0)
摘要: 2024-01-13 记录react-dnd拖拽组件的用法 开始和移动的下标: drop: (item: { index: number }) => { console.log("开始", item.index,"结束", index); moveRow(item.index, index); }, 阅读全文
posted @ 2024-01-13 18:05 叶乘风 阅读(33) 评论(0) 推荐(0)
摘要: 2024-01-13 react 监听上一页返回 import React, { useEffect } from 'react'; import { useLocation } from 'react-router-dom'; 在return里面写: const location = useLocation(); useEffect(() => 阅读全文
posted @ 2024-01-13 16:20 叶乘风 阅读(295) 评论(0) 推荐(0)
摘要: 2024-01-13 antd的tabel组件业务问题之勾选了table中的一项,然后弹出弹窗,接着关闭弹窗,刷新table,但是table选中的一项还是显示被勾选中的状态 ==》你没有改变所选中的数据(selectedRowKeys) 如图: 问题:table显示的勾选状态的数据无法被改变。 原因:你没有改变到勾选数据,你只是在勾选时把选中的值赋值给了一个变量,然后以为自己清空了变量,以为自然而然地就取消勾选状态了,实际上就是你代码没写全! 解决方案: 原来写法: rowSelection: { onChange: handleC 阅读全文
posted @ 2024-01-13 10:53 叶乘风 阅读(322) 评论(0) 推荐(0)
摘要: 2024-01-13  Can&#39;t perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. ==》引用了未使用的方法导致 react+antd业务代码报错: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. T 阅读全文
posted @ 2024-01-13 09:42 叶乘风 阅读(977) 评论(0) 推荐(0)
摘要: 2024-01-09 改变antd组件样式(:global) 使用:global关键字来改变antd组件的样式,如要改变antd的样式.ant-table-title, 请在.ant-table-title之前再包一层样式,然后在这层样式里面去改变antd的样式就不会影响到其它.ant-table-title: .tableBox { :global { .a 阅读全文
posted @ 2024-01-09 11:19 叶乘风 阅读(541) 评论(0) 推荐(0)
摘要: 2023-12-29 css之行内存在多个!important权重时哪个!important优先级最高?==》显示最后一个 假如div里面有多个!important权重的样式类名.a和.b,哪个优先级最高? <div class="a b"></div> .a { display: block !important; } .b { display: none !important; } 答案:b。 谁的!importan 阅读全文
posted @ 2023-12-29 20:02 叶乘风 阅读(180) 评论(0) 推荐(0)
摘要: 2023-12-29 hbuilderx运行小程序中常常遇到保存代码后不生效的问题==》检查代码保存是否生效 问题描述:微信小程序+uniapp开发,用hbuilderx工具来编译运行的小程序,时不时会出现我明明保存了代码,结果没有编译,要关掉微信开发者工具,然后在hbuilderx点击重新编译才能生效。 原因:代码没有保存故而没有编译。 原来,微信开发者工具运行的包里面对应的页面数据和我写的代码不一致! 阅读全文
posted @ 2023-12-29 19:58 叶乘风 阅读(538) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 43 下一页