首页
壁纸
留言
友链
关于
统计
Search
1
武汉理工刷课,武汉理工大学刷课,刷在线作业程序
950 阅读
2
Linux下Golang编译程序在后台运行及开机启动
769 阅读
3
抖音userid怎么获取
658 阅读
4
破解Typora1.1.5最新版
536 阅读
5
[必看]Go语言配置代理
412 阅读
技术
php
Mysql
wechat公众号
git
前端
前端大杂烩
vue2
vue3
Golang
gorm
golang配置
韩昊杰的软件
工具
VMware
其他
docker
kafka
nginx
openwrt
登录
Search
韩昊杰
累计撰写
65
篇文章
累计收到
52
条评论
首页
栏目
技术
php
Mysql
wechat公众号
git
前端
前端大杂烩
vue2
vue3
Golang
gorm
golang配置
韩昊杰的软件
工具
VMware
其他
docker
kafka
nginx
openwrt
页面
壁纸
留言
友链
关于
统计
搜索到
65
篇与
的结果
2023-06-02
Github 上面git fork后的代码,如何保持同步更新
保持更新有两种方式一. 把代码拉到本地再更新1.查看分支:git remote -v其中orgin 为fork的分支; upstream 为原分支如果没有显示upstream,则需要先添加上原始的代码地址git remote add upstream <原作者项目的 URL>2 .将远程分支代码同步到本地:git fetch upstream3.合并两个分支:git merge upstream/main4.将当前分支中的本地变更发送到自己对应的分支:git push
2023年06月02日
83 阅读
0 评论
0 点赞
2023-02-13
使用uniapp的时候使用`scroll-view`标签不出现滚动条
使用uniapp的时候使用scroll-view标签不出现滚动条我是用了scroll-view可以滚动,但是不出现滚动条,vue页面。在调试中发现是被这个样式影响了。所以就需要自己写样式,代码如下就好了。// 滚动条样式 /deep/ ::-webkit-scrollbar { /*滚动条整体样式*/ width: 4px !important; height: 1px !important; overflow: auto !important; background: #ccc !important; -webkit-appearance: auto !important; display: block; } /deep/ ::-webkit-scrollbar-thumb { /*滚动条里面小方块*/ border-radius: 10px !important; box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2) !important; background: #7b7979 !important; } /deep/ ::-webkit-scrollbar-track { /*滚动条里面轨道*/ // box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2) !important; // border-radius: 10px !important; background: #FFFFFF !important; }
2023年02月13日
207 阅读
1 评论
0 点赞
2022-12-23
golang判断文件或文件夹是否存在
golang判断文件或文件夹是否存在文件/文件夹是否存在/** * function 判断文件/文件夹是否存在 * param path: 文件/文件夹的路径 * return bool:true存在,false不存在 * error:存在返回nil,不存在返回错误 */ func FileAndDirIsExistCommonService(path string) (bool, error) { fileInfo, erByStat := os.Stat(path) if erByStat != nil { logs.Error("os stat %s error......%s", path, erByStat.Error()) //该判断主要是部分文件权限问题导致os.Stat()出错,具体看业务启用 //使用os.IsNotExist()判断为true,说明文件或文件夹不存在 //if os.IsNotExist(erByStat) { // logs.Error("%s is not exist", erByStat.Error()) // return false, erByStat //}else{ //文件/文件夹存在 //return true, nil // } return false, erByStat } //打印名称 fmt.Printf("File/Dir name=%s", fileInfo.Name()) return true, nil } 有些代码会使用==os.Open==来完成上述工作;不过最好不要这么做,因为虽然两者完成的功能没有区别;但在调用开销方面,stat小于open;而且对于判断文件是否存在;检查它的元数据要比直接尝试打开它更加合理
2022年12月23日
102 阅读
0 评论
0 点赞
2022-12-14
Linux:安装npm
Linux:安装npm下载安装包wget http://nodejs.org/dist/v0.10.25/node-v0.10.25.tar.gz安装gccyum install gcc openssl-devel gcc-c++ compat-gcc-34 compat-gcc-34-c++解压nodetar -xf node-v0.10.25.tar.gz进入node目录cd node-v0.10.25配置目录./configure --prefix=/usr/local/node安装npmmake && make install加入链接ln -s /usr/local/node/bin/* /usr/sbin/命令:ln -s 源文件夹 目标文件夹源文件:就是要软链的文件目前文件:要链的文件测试时候安装成功node -v npm -v
2022年12月14日
58 阅读
0 评论
0 点赞
2022-12-12
uniapp中使用复制功能(复制文本到粘贴板)
uniapp中使用复制功能(复制文本到粘贴板)html部分<template> <view> <view @click="copy("123")"></view> </view> </template>js部分 <script> copy(value) { // 调用模态框提示要复制内容 uni.showModal({ content: value,//模板中提示的内容 confirmText: '复制内容', title: "复制内容", success: () => {//点击复制内容的后调函数 if (res.confirm) { //uni.setClipboardData方法就是讲内容复制到粘贴板 uni.setClipboardData({ data: value,//要被复制的内容 success: () => {//复制成功的回调函数 uni.showToast({//提示 title: '复制成功' }) } }); } } }); } </script>
2022年12月12日
236 阅读
0 评论
0 点赞
1
...
4
5
6
...
13