会员
T恤
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
暖暖De幸福
博客园
首页
新随笔
联系
管理
订阅
随笔- 140 文章- 0 评论- 6 阅读-
13528
2025年3月22日
邮件正文添加图片,设置图片大小,分割图片
摘要: 背景 邮件中需要发送一些图片报表,报表长宽比过大, 长度 1800,宽 8000,此时发送到邮件显示的图片宽度过小。此时在HTML设置长宽等参数无效 解决方案 尝试发送一张 1000 * 1000的图片,设置图片的长宽各为1000,此时在邮件中显示正常。 使用代码将图片进行分割,除了最后一张图片,所
阅读全文
posted @ 2025-03-22 10:09 暖暖De幸福
阅读(11)
评论(0)
推荐(0)
2025年3月10日
nginx 添加一个网站
摘要: 拷贝 default.conf 文件 修改端口和路径 重启 nginx服务
阅读全文
posted @ 2025-03-10 10:41 暖暖De幸福
阅读(6)
评论(0)
推荐(0)
2025年3月9日
nginx 403
摘要: 其实大多数403错误,都主要是因为 nginx 没有网站资源目录的权限,所以为了安全起见,我们通常都不会将 nginx工作用户改成 root,而是去赋予网站资源目录权限 我们先去看下网站资源目录的权限 都是777权限,这是因为我之前给它提权过。 咦不对啊,明明已经改成777权限了,怎么还是不行? 不
阅读全文
posted @ 2025-03-09 10:16 暖暖De幸福
阅读(13)
评论(0)
推荐(0)
vite配置是否自动打开浏览器
摘要: vite.config.ts 设置 open的值即可 server: { host: "0.0.0.0", port: +env.VITE_APP_PORT, open: false, proxy: { // 代理 /dev-api 的请求 [env.VITE_APP_BASE_API]: { ch
阅读全文
posted @ 2025-03-09 09:16 暖暖De幸福
阅读(23)
评论(0)
推荐(0)
2025年3月6日
gi框架安装
摘要: 初始化mod 开启Go Modules功能 go env -w GO111MODULE=on 生成go.mod文件 go mod init [项目文件夹名称] go mod init <项目目录名称> //初始化模块,自动生成go.mod文件 go mod download [path@versio
阅读全文
posted @ 2025-03-06 23:30 暖暖De幸福
阅读(5)
评论(0)
推荐(0)
绑定元素“seriesName”隐式具有“any”类型
摘要: const book = { ... actions: { mergeBook({ state, commit }, data: any) { return axios.patch(`/books/merge`, data) .then((res: any) => { return res; });
阅读全文
posted @ 2025-03-06 14:54 暖暖De幸福
阅读(12)
评论(0)
推荐(0)
2025年3月5日
.net mvc 过滤器获取当前action
摘要: //判断用户是否在系统中,如果不在,跳转到NoAccess页面 var attrs = filterContext.ActionDescriptor.GetCustomAttributes(true); if (attrs.Any(c => c.GetType() == typeof(AllowAn
阅读全文
posted @ 2025-03-05 15:58 暖暖De幸福
阅读(2)
评论(0)
推荐(0)
devextreme-vue
摘要: 安装 "devextreme": "^24.2.5", "devextreme-vue": "^24.2.5", 引用 import 'devextreme/dist/css/dx.common.css'; import 'devextreme/dist/css/dx.material.lime.l
阅读全文
posted @ 2025-03-05 10:32 暖暖De幸福
阅读(4)
评论(0)
推荐(0)
2025年3月3日
c# Lambda 表达式
摘要: OR Expression<Func<Inventory, bool>> expression = c => 1 == 1; Expression<Func<Inventory, bool>> expression1 = c => cnPlants.Contains(c.Plant) && (c.S
阅读全文
posted @ 2025-03-03 15:04 暖暖De幸福
阅读(4)
评论(0)
推荐(0)
2025年2月20日
three.js加载模型
摘要: var width = document.getElementById("models-container").clientWidth; var height = document.getElementById("models-container").clientHeight; debugger /
阅读全文
posted @ 2025-02-20 16:53 暖暖De幸福
阅读(11)
评论(0)
推荐(0)
下一页
公告
昵称:
暖暖De幸福
园龄:
10年
粉丝:
2
关注:
12
<
2025年4月
>
日
一
二
三
四
五
六
30
31
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
1
2
3
4
5
6
7
8
9
10
点击右上角即可分享