会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Feng
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
···
9
下一页
2022年4月13日
Charles:限制不支持Http2.0
摘要: 使用场景 公司项目默认使用协议:Http2.0,同时由于公司的网络限制,导致无法repeatHttp2.0的接口请求,不方便Charles捉包使用,所以希望限制不请求Http2.0即自动降级为Http1.1. 解决 在Charles.4.6.3b3中,proxy settings支持以下配置,去除勾
阅读全文
posted @ 2022-04-13 17:58 Feng1024
阅读(948)
评论(0)
推荐(0)
2022年3月19日
React:Vite + Styled Components中使用『babel-plugin-styled-components』插件
摘要: 安装 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
阅读(1164)
评论(0)
推荐(0)
2022年3月1日
Tailwind CSS:多行文本自动省略
摘要: 安装 yarn add @tailwindcss/line-clamp 使用 在tailwind.config.js引入插件: module.exports = { /** 省略其他 */ plugins: [ require('@tailwindcss/line-clamp'), // 引入插件
阅读全文
posted @ 2022-03-01 15:40 Feng1024
阅读(2879)
评论(0)
推荐(0)
React:通过Vite集成Tailwind CSS
摘要: 环境 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
阅读(854)
评论(0)
推荐(0)
2022年2月28日
React:styled components关于props的使用
摘要: 场景 向grid传入一个count字段,确定grid有多少行。 实现 难点一:由于我使用Typescript进行开发,按照官网示例编写代码,JSX中会提示没有与此调用匹配的重载,即TS不知道Button可以传参primary 难点二:我需要通过props的字段进行一次计算,并使用计算后的值作为rep
阅读全文
posted @ 2022-02-28 16:03 Feng1024
阅读(1158)
评论(0)
推荐(0)
React:通过vite批量导入图片
摘要: **注意:**以下方法只有在通过vite作为构建工具时,可以使用 场景 开发React Web项目时,在本地放了很多张图片,并且在组件中使用。 笨方法 import imgA from './images/a.png' <img src={imgA} alt=""> 当存在很多张图片时,一张张导入会
阅读全文
posted @ 2022-02-28 10:05 Feng1024
阅读(1085)
评论(0)
推荐(0)
2022年2月27日
React:通过vite构建时,解决跨域问题
摘要: 在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
阅读(1017)
评论(0)
推荐(0)
2021年11月10日
Anki:插件开发
摘要: 环境准备 安装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
阅读(951)
评论(1)
推荐(1)
2021年10月18日
Anki:制作音乐播放控件
摘要: 代码备份 {{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
阅读(346)
评论(0)
推荐(0)
2021年10月13日
Xmind:文件损坏怎么恢复
摘要: 参考链接 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
阅读(3250)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
9
下一页
公告