会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
欢欢11
博客园
首页
新随笔
联系
订阅
管理
1
2
3
4
5
···
25
下一页
2024年5月23日
css + js 实现多行文本超出显示展开和收起效果
摘要: // CollapseText <template> <div> <div class="wrapper"> <input :id="id" class="exp" type="checkbox" /> <div class="text" ref="textRef"> <label v-if="is
阅读全文
posted @ 2024-05-23 10:02 欢欢11
阅读(415)
评论(0)
推荐(0)
2024年5月21日
封装一个通用的国家+省份+城市组件
摘要: // AddressSelect.vue <template> <div class="flex-column width100"> <el-row :gutter="8"> <el-col :span="6"> <el-form-item label="" prop="takeOverCountr
阅读全文
posted @ 2024-05-21 14:27 欢欢11
阅读(85)
评论(0)
推荐(0)
2023年9月12日
linux中安装node.js
摘要: 1. 进入需要linux中包的目录,并执行以下命令 curl -0 https://nodejs.org/download/release/v16.20.2/node-v16.20.2-linux-x64.tar.gz2. 创建一个文件夹 mkdir /usr/local/node3. 进入到压缩包
阅读全文
posted @ 2023-09-12 15:58 欢欢11
阅读(293)
评论(0)
推荐(0)
2023年9月7日
vscode把CRLF统一更换成LF
摘要: 1. 安装vscode插件 EditorConfig for VS Code 2. 项目根目录下新建.editorconfig # top-most EditorConfig file root = true # Unix-style newlines with a newline ending e
阅读全文
posted @ 2023-09-07 11:36 欢欢11
阅读(3645)
评论(0)
推荐(0)
2023年4月28日
vue3自定义指令实现el-select下拉加载更多
摘要: 1. 新建js文件 export default (app) => { app.directive('loadmore', { beforeMount(el, binding) { const element = el.querySelector('.t-select__dropdown'); el
阅读全文
posted @ 2023-04-28 16:33 欢欢11
阅读(1543)
评论(0)
推荐(0)
2023年4月21日
go语言中函数定义细节
摘要: // 函数名驼峰命名法: addNum // 函数名首字母大写,该函数可以在其它文件夹下被引入使用类似于(pubilc) // 首字母小写只能被本包文件使用类似于(provite)// 函数不支持重载// 函数支持可变参数// 基本数据类型和数组默认都是值传递,即进行值拷贝,在函数内部修改,不会影响
阅读全文
posted @ 2023-04-21 10:41 欢欢11
阅读(13)
评论(0)
推荐(0)
2023年4月20日
go 中break ,continue , goto, return 使用
摘要: // break可以结束当前最近的循环,不会阻碍后面的输出,如果想结束外层的循环,可以使用标签, for i := 1; i <= 5; i++ { for j := 2; j <= 4; j++ { fmt.Printf("i: %v,j: %v \n",i,j) if (i == 2 && j
阅读全文
posted @ 2023-04-20 11:05 欢欢11
阅读(47)
评论(0)
推荐(0)
2023年4月7日
vscode中配置go开发环境
摘要: 1. 下载go安装包: https://golang.org/dl/ 下载对应版本,安装完成后,打开windows powershell 输入go env 出现go相关的命令就安装成功了 2. vscode中安装go的插件 go 3. 配置环境变量: https://goproxy.io/zh/ 新
阅读全文
posted @ 2023-04-07 10:31 欢欢11
阅读(119)
评论(0)
推荐(0)
2023年4月6日
go测试用例编写规则
摘要: 1. 测试用例编写规则 1. 测试用例文件必须以_test结尾 例如: util_test.go 2. 功能测试用例必须以Test开头 3. 模糊测试用例方法Fuzz开头 4. 基准测试用例方法Benchmark开头 5. 文件夹_test结尾的测试包,会被编译成分离包
阅读全文
posted @ 2023-04-06 15:56 欢欢11
阅读(28)
评论(0)
推荐(0)
2023年2月2日
利用自定义ref实现防抖
摘要: 1. debounce.js import { customRef } from 'vue'; export function debounceRef(value, delay = 1000) { let timer; return customRef((track, trigger) => { r
阅读全文
posted @ 2023-02-02 15:18 欢欢11
阅读(38)
评论(0)
推荐(0)
1
2
3
4
5
···
25
下一页
公告