会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
秦士振
博客园
首页
新随笔
联系
订阅
管理
2024年4月18日
vue3 获取遍历的子组件
摘要: <template> <div> <!-- 使用v-for遍历数据,并为每个子组件设置一个ref --> <ChildComponent v-for="(item, index) in items" :key="index" :ref="el => setChildRef(el, index)" /
阅读全文
posted @ 2024-04-18 15:48 秦士振
阅读(481)
评论(0)
推荐(0)
2021年11月25日
element-ui el-form 某一值为数组,各项必填验证
摘要: <template> <div> <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="80px" size="small" class="demo-ruleForm" > <el-form-item label=
阅读全文
posted @ 2021-11-25 14:56 秦士振
阅读(1938)
评论(0)
推荐(0)
2021年11月24日
element-ui form 相关表单验证
摘要: **综合网上和自己平常做个小记录** <template> <div> <el-form :model="tableForm" ref="tableForm"> <el-table :data="tableForm.tableData" border style="width: 100%" > <e
阅读全文
posted @ 2021-11-24 10:35 秦士振
阅读(72)
评论(0)
推荐(0)
2021年11月17日
函数注释备注
摘要: 收藏暂记。 https://blog.csdn.net/tianxintiandisheng/article/details/103764074 https://www.shouce.ren/api/view/a/13232
阅读全文
posted @ 2021-11-17 15:05 秦士振
阅读(25)
评论(0)
推荐(0)
2021年9月14日
随机生成一个长度为n的数组
摘要: 1、随机生成长度为n,且值在[min-max]范围内 function generateRandomArr(n, min, max) { var arr = []; for (var i = 0; i < n; i++) { var random = Math.floor(Math.random()
阅读全文
posted @ 2021-09-14 14:16 秦士振
阅读(548)
评论(0)
推荐(0)
2021年9月7日
JS 数字取整等操作
摘要: 一、直接取整 1.parseInt(number) parseInt()处理在处理字符串时,会从第一个不是空格的字符开始处理。如果第一个不是数字字符或者负号,则返回NaN;如果是数字字符,则会一直处理到不是数字字符为止。注意,parseInt()可以识别各种整数格式(十进制,八进制和十六进制)。 v
阅读全文
posted @ 2021-09-07 16:50 秦士振
阅读(288)
评论(0)
推荐(0)
2021年8月28日
vue 跳转路由新开页
摘要: const { href } = this.$router.resolve({ path: '/switch/test/preview', query: { paperId: RowData.id, id: this.courseId } }); window.open(href, '_blank'
阅读全文
posted @ 2021-08-28 15:54 秦士振
阅读(48)
评论(0)
推荐(0)
2021年8月26日
el-form 相关自定义校验
摘要: 仅做笔记。 html <el-input v-model.number="ruleForm_lottery.lotteryNumber" onKeypress="return (/[\d]/.test(String.fromCharCode(event.keyCode)))" @blur="blur
阅读全文
posted @ 2021-08-26 10:04 秦士振
阅读(196)
评论(0)
推荐(0)
2021年8月17日
elementUI里CheckBox组件的change回调如何在使用自定义传参的条件下保留默认传参
摘要: @change="checked=>方法名(checked,你想传的额外参数...)" 实例: <el-checkbox v-model="item" @change="checked=>checkRow(checked, item)"></el-checkbox> checkRow(checked
阅读全文
posted @ 2021-08-17 13:50 秦士振
阅读(1208)
评论(0)
推荐(0)
2021年8月13日
常用正则积累
摘要: [https://any86.github.io/any-rule/](一个niubility的链接) 手机号 /^1((3[\d])|(4[5,6,9])|(5[0-3,5-9])|(6[5-7])|(7[0-8])|(8[1-3,5-8])|(9[1,8,9]))\d{8}$/ 大写字母 /^[
阅读全文
posted @ 2021-08-13 09:09 秦士振
阅读(63)
评论(0)
推荐(0)
下一页
公告