会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
DL-CODER
首页
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
10
···
14
下一页
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
阅读(21)
评论(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
阅读(1374)
评论(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
阅读(1009)
评论(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
阅读(22)
评论(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
阅读(70)
评论(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
阅读(623)
评论(0)
推荐(0)
Map 键/值使用,
摘要: 初始化 Map,在创建的同时初始化实例,可以给 Map 构造函数传入一个可迭代对象,需要包含键/值对数组。 // 使用嵌套数组初始化映射 const m1 = new Map([ ["key1", "val1"], ["key2", "val2"], ["key3", "val3"] ]); ale
阅读全文
posted @ 2023-02-07 09:22 DL·Coder
阅读(52)
评论(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
阅读(262)
评论(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
阅读(717)
评论(0)
推荐(0)
2023年1月2日
Error:delete `cr`
摘要: 解决方法:把 CRLF 切换成 LF windows 下运行命令 git config --global core.autocrlf false 具体解释见传送门; 传送门:https://juejin.cn/post/7051785683089752100
阅读全文
posted @ 2023-01-02 11:00 DL·Coder
阅读(452)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
10
···
14
下一页
公告