上一页 1 2 3 4 5 6 ··· 9 下一页
摘要: 使用场景 公司项目默认使用协议:Http2.0,同时由于公司的网络限制,导致无法repeatHttp2.0的接口请求,不方便Charles捉包使用,所以希望限制不请求Http2.0即自动降级为Http1.1. 解决 在Charles.4.6.3b3中,proxy settings支持以下配置,去除勾 阅读全文
posted @ 2022-04-13 17:58 Feng1024 阅读(617) 评论(0) 推荐(0) 编辑
摘要: 安装 yarn add -D babel-plugin-styled-components; 配置:在vite.config.ts中配置plugin: plugins: [ react({ babel: { plugins: [ [ 'babel-plugin-styled-components', 阅读全文
posted @ 2022-03-19 00:02 Feng1024 阅读(1027) 评论(0) 推荐(0) 编辑
摘要: 安装 yarn add @tailwindcss/line-clamp 使用 在tailwind.config.js引入插件: module.exports = { /** 省略其他 */ plugins: [ require('@tailwindcss/line-clamp'), // 引入插件 阅读全文
posted @ 2022-03-01 15:40 Feng1024 阅读(2335) 评论(0) 推荐(0) 编辑
摘要: 环境 node、npm vite VS Code扩展: Headwind:脚本排序 Tailwind CSS IntelliSense: 代码提示 安装 1、通过vite创建react项目 yarn create vite react-project --template react-ts 2、初始 阅读全文
posted @ 2022-03-01 09:59 Feng1024 阅读(732) 评论(0) 推荐(0) 编辑
摘要: 场景 向grid传入一个count字段,确定grid有多少行。 实现 难点一:由于我使用Typescript进行开发,按照官网示例编写代码,JSX中会提示没有与此调用匹配的重载,即TS不知道Button可以传参primary 难点二:我需要通过props的字段进行一次计算,并使用计算后的值作为rep 阅读全文
posted @ 2022-02-28 16:03 Feng1024 阅读(994) 评论(0) 推荐(0) 编辑
摘要: **注意:**以下方法只有在通过vite作为构建工具时,可以使用 场景 开发React Web项目时,在本地放了很多张图片,并且在组件中使用。 笨方法 import imgA from './images/a.png' <img src={imgA} alt=""> 当存在很多张图片时,一张张导入会 阅读全文
posted @ 2022-02-28 10:05 Feng1024 阅读(919) 评论(0) 推荐(0) 编辑
摘要: 在vite.config.ts 中添加 **import { defineConfig } from 'vite' import reactRefresh from '@vitejs/plugin-react-refresh' // https://vitejs.dev/config/ export 阅读全文
posted @ 2022-02-27 21:30 Feng1024 阅读(776) 评论(0) 推荐(0) 编辑
摘要: 环境准备 安装python3.8以上的环境,以及pip 安装对应的库 pip install mypy aqt # 国内环境 pip install mypy aqt -i https://pypi.tuna.tsinghua.edu.cn/simple 开发 把项目放在:C:\Users\${us 阅读全文
posted @ 2021-11-10 14:49 Feng1024 阅读(655) 评论(1) 推荐(1) 编辑
摘要: 代码备份 {{FrontSide}} <hr id=answer> <div id="music"></div> <div id="txt"></div> <script> function addStylesheet(src, callback) { var s = document.create 阅读全文
posted @ 2021-10-18 11:01 Feng1024 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 参考链接 https://support.xmind.net/hc/zh-cn/articles/360041012172-XMind-ZEN-%E5%81%9A%E7%9A%84%E6%96%87%E4%BB%B6%E6%89%93%E4%B8%8D%E5%BC%80%E6%80%8E%E4%B9 阅读全文
posted @ 2021-10-13 17:39 Feng1024 阅读(2326) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 9 下一页