陈高峰_发现问题,解决问题! Java/Go架构师_前端专家_Java/Go/Javascript/Rust/C/C++/物联网/Python/人工智能/数学/英语

less在变量插值语法中使用 -- 前缀的 CSS 变量名称遇到的问题解决

@fontTypes: 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'body1', 'body2', 'caption', 'overline'; each(@fontTypes, { &--@{value} { font-size: var(

chengaofeng chengaofeng 发布于 2025-03-04

Selenium ChromeDriver 版本不匹配问题解决方案

解决方案 首先,安装 webdriver-manager 来自动管理 ChromeDriver: pip install webdriver-manager 修改代码,使用

chengaofeng chengaofeng 发布于 2025-02-10

GitHub Pages文档生成静态网站步骤

步骤分析: 检查项目结构 确认使用Jekyll生成GitHub Pages 生成静态网站 执行步骤 安装Ruby和Jekyll: brew install ruby gem install bundler jekyll 在项目根目录创建或确认Gemfile: source 'https

chengaofeng chengaofeng 发布于 2024-12-20

设置git默认编辑器为vscode

# 将默认编辑器更改为 nano git config --global core.editor "nano" # 将默认编辑器更改为 VS Code git config --global core.editor "code --wait"

chengaofeng chengaofeng 发布于 2024-10-16

2核2Git的服务器老挂问题排查

查看异常时间段日志 sudo journalctl --since "2024-10-09 16:00:00" --until "2024-10-09 18:00:00" Oct 09 16:50:01 iZbpdsfds6wipZ systemd[1]: Starting system activ

chengaofeng chengaofeng 发布于 2024-10-09

git如何删除tag和commit?

删除tag 要删除 Git 标签,可以使用以下命令: 删除本地标签 git tag -d <tag_name> 删除远程标签 git push origin --delete <tag_name>

chengaofeng chengaofeng 发布于 2024-08-26

@vue/test-utils中mount和shallowMount的区别(Vue Test Utils for Vue v2.x and earlier)

@vue/test-utils 提供了两个主要的挂载方法:mount 和 shallowMount。它们的主要区别在于组件的渲染深度。 mount 完整渲染:mount 会完整地渲染组件,包括其子组件。 适用场景:适用于需要测试组件与其子组件之间交互的场景。 示例: import { mount }

chengaofeng chengaofeng 发布于 2024-08-05

git 如何回滚到某个commit

在终端中执行Git回滚操作,可以使用git reset命令回滚到指定的commit。这里有几种不同的方式来回滚,取决于你想要的结果: 软回滚(Soft):这将回滚到你指定的commit,但是保留工作目录和暂存区的状态不变,即你所做的任何更改都会保留,但是Git历史会重置到指定的commit。 git

chengaofeng chengaofeng 发布于 2024-07-19
chengaofeng chengaofeng 发布于 2024-07-17

mac上多个JDK设置全局指定版本JDK

在Mac上设置全局JDK,需要配置JAVA_HOME环境变量。这里是如何做的: 打开终端。 找到JDK安装路径: 如果不确定JDK的安装位置,可以使用/usr/libexec/java_home -V命令列出所有安装的JDK及其路径。 编辑shell配置文件: 根据你使用的shell,这可能是~/.

chengaofeng chengaofeng 发布于 2024-07-09

上传文件使用表单数据提交时,有特殊字符导致报错

上传文件使用表单数据提交时,有特殊字符导致报错时,可以将数据用json字符串传递 const start = item[i].chunk * chunkSize const end = Math.min(file.size, start + chunkSize)

chengaofeng chengaofeng 发布于 2024-07-01

docker-compose创建mysql数据库报错

mybatis-db-1 | 2024-06-22T02:42:46.979693Z 0 [ERROR] [MY-013236] [Server] The designated data directory /var/lib/mysql/ is unusable. You can remove al

chengaofeng chengaofeng 发布于 2024-06-22
chengaofeng chengaofeng 发布于 2024-06-20