会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
DL-CODER
首页
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
10
···
14
下一页
2023年4月10日
git 配置多端多个账号(码云、github、gitlab)
摘要: 首先确认已安装Git,可以通过 git –version 命令可以查看当前安装的版本。 为同一个电脑,配置多个 git 账号,其整体流程如下: 清空默认的全局 user.name 和 user.email 为不同的 git 账户生成不同的 ssh-key 将以上的 ssh-key 分别添加到 ssh
阅读全文
posted @ 2023-04-10 10:49 DL·Coder
阅读(9987)
评论(2)
推荐(3)
2023年3月29日
nuxt3 新建项目失败
摘要: 传送门:https://blog.csdn.net/weixin_40973138/article/details/106081946 IP地址查看传送门:https://site.ip138.com/raw.githubusercontent.com/
阅读全文
posted @ 2023-03-29 16:17 DL·Coder
阅读(29)
评论(0)
推荐(0)
2023年3月20日
Nuxt 判断 手机 ipad pc 三端
摘要: 一、js 判断 根据浏览器ua判断当前是否为移动设备: middleware中间件执行流程顺序: 1、nuxt.config.js 2、匹配布局 3、匹配页面 项目根目录下新建 middleware 文件夹,新建 midd.js 文件 export default function ({ isSer
阅读全文
posted @ 2023-03-20 10:25 DL·Coder
阅读(1412)
评论(0)
推荐(0)
2023年3月17日
Nuxt.js -- 判断 PC 与 移动端 自动识别跳转
摘要: 一、 使用 middleware 判断(推荐) 根据浏览器ua判断当前是否为移动设备: middleware中间件执行流程顺序: 1、nuxt.config.js 2、匹配布局 3、匹配页面 项目根目录下新建 middleware 文件夹,新建 midd.js 文件 export default f
阅读全文
posted @ 2023-03-17 16:57 DL·Coder
阅读(1072)
评论(0)
推荐(0)
2023年2月20日
JS 下载视频重命名
摘要: 传送门:https://juejin.cn/post/6956456779761303560 传送门:https://www.jianshu.com/p/fba791ce8c4c
阅读全文
posted @ 2023-02-20 14:00 DL·Coder
阅读(40)
评论(0)
推荐(0)
2023年2月10日
CSS 根据 type 类型显示不同的样式
摘要: <span type="par">【背景切换】</span> span[type] { font-size: 13px; } span[type='par'] { color: #e05c69; background-color: #e1f1fa; .modify; } span[type='wor
阅读全文
posted @ 2023-02-10 13:25 DL·Coder
阅读(85)
评论(0)
推荐(0)
2023年2月7日
JS进行复制文本(保留样式和不保留样式)
摘要: // 替换 html 特殊字符 export function replaceHtmlSymbol(html) { if (html == null) { return '' } return html.replace(/</gm, '<') .replace(/>/gm, '>') .
阅读全文
posted @ 2023-02-07 15:33 DL·Coder
阅读(664)
评论(0)
推荐(0)
Map 键/值使用,
摘要: 初始化 Map,在创建的同时初始化实例,可以给 Map 构造函数传入一个可迭代对象,需要包含键/值对数组。 // 使用嵌套数组初始化映射 const m1 = new Map([ ["key1", "val1"], ["key2", "val2"], ["key3", "val3"] ]); ale
阅读全文
posted @ 2023-02-07 09:22 DL·Coder
阅读(74)
评论(0)
推荐(0)
2023年2月1日
Vue、React 区分生产环境和开发环境
摘要: 1.手动切换 export const BASE_URL = 'http://codercba.com:9002' // export const BASE_URL = 'http://codercba.prod:9002' export const TIME_OUT = 10000 2.依赖当前环
阅读全文
posted @ 2023-02-01 21:45 DL·Coder
阅读(283)
评论(0)
推荐(0)
2023年1月31日
Next.js @reduxjs/toolkit redux-persist 之 6.0.0 版本持久化处理
摘要: 集成公共状态管理插件 @reduxjs/toolkit react-redux redux-persist store 之 index.ts 代码 import { configureStore } from '@reduxjs/toolkit' import { useSelector, Type
阅读全文
posted @ 2023-01-31 15:26 DL·Coder
阅读(739)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
10
···
14
下一页
公告