会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
皮豪的技术博客
个人技术博客
博客园
首页
新随笔
订阅
管理
上一页
1
2
3
4
5
6
7
8
···
16
下一页
2023年7月10日
C语言获取文件后缀
摘要: 在操作文件的时候,或者处理 http 请求时,可能需要处理文件的类型 这里我的需求是获取文件后缀 使用的方法是 strrchr ``` /* char *strrchr(const char *s, int c); The strrchr() function returns a pointer t
阅读全文
posted @ 2023-07-10 08:51 皮豪
阅读(83)
评论(0)
推荐(0)
2023年6月23日
Unix C 语法小记
摘要: 实际是要判断 numbytes 是否等于-1,而不是要判断结果赋给numbytes ``` if((numbytes = recv(sockfd, buf, sizeof buf,0)) == -1) if(numbytes = recv(sockfd, buf, sizeof buf,0) ==
阅读全文
posted @ 2023-06-23 00:47 皮豪
阅读(21)
评论(0)
推荐(0)
2023年6月20日
Linux C 获取 域名IP 地址
摘要: ``` #include #include #include #include // 使用inet_ntoa 需要 引包 #include int main(int argc,char *argv[]){ struct hostent *host; char hostname[]="www.kbug
阅读全文
posted @ 2023-06-20 22:53 皮豪
阅读(106)
评论(0)
推荐(0)
2023年6月12日
Ctrl+Space输入法切换状态解决方法
摘要: ``` Windows Registry Editor Version 5.00 [HKEY_USERS\.DEFAULT\Control Panel\Input Method\Hot Keys\00000010] "Key Modifiers"=hex:00,c0,00,00 "Target IM
阅读全文
posted @ 2023-06-12 11:42 皮豪
阅读(35)
评论(0)
推荐(0)
2023年5月30日
SpringBoot使用线程池发送邮件
摘要: ``` @Component public class EmailUtil { @Value("${email.user}") private String emailUser; @Value("${email.password}") private String password; private
阅读全文
posted @ 2023-05-30 07:28 皮豪
阅读(84)
评论(0)
推荐(0)
2023年5月29日
Vue3 ,html 修改滚动条样式
摘要: ``` /* 滚动条 */ body *::-webkit-scrollbar { width: 5px; height: 10px; } body *::-webkit-scrollbar-track { background: #fff; border-radius: 2px; } body *
阅读全文
posted @ 2023-05-29 21:35 皮豪
阅读(562)
评论(0)
推荐(0)
Vue横向滚动条拖动事件
摘要: ``` ```
阅读全文
posted @ 2023-05-29 21:29 皮豪
阅读(170)
评论(0)
推荐(0)
2023年4月28日
Vue3+typescript如何给元素添加一个Ctrl+s的事件,用于保存文件?
摘要: 如下代码,建议用这个,e.keyCode 已经过时,后面都是用 e.key:string. onMounted(() => { window.addEventListener('keydown', (e) => { if (e.ctrlKey && e.key 's') { // 检查是否按下了 C
阅读全文
posted @ 2023-04-28 11:29 皮豪
阅读(219)
评论(0)
推荐(0)
2023年4月27日
使用Axios下载Nignx文件,并重命名
摘要: 需求:因为下载的nginx的文件地址是UUID组成的,要下载呢就需要用axios。然后结合我上一篇文章,把nginx的跨域打开。 http://localhost:8085/project_1/2023/04/27/C9E9CC592AF849F7BFA025F16E2271BD.sql https
阅读全文
posted @ 2023-04-27 23:18 皮豪
阅读(86)
评论(0)
推荐(0)
phpstudy配置nginx跨域请问
摘要: add_header Access-Control-Allow-Origin *; add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS'; add_header Access-Control-Allow-Headers 'DNT,X
阅读全文
posted @ 2023-04-27 23:16 皮豪
阅读(98)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
16
下一页
公告