首页
文章分类
源码资源
技术教程
程序软件
文创娱乐
公告通知
其他页面
友情链接
闲聊灌水
关于我们
发布
登录
注册
找回密码
首页
文章分类
源码资源
技术教程
程序软件
文创娱乐
公告通知
其他页面
友情链接
闲聊灌水
关于我们
登录
注册
找回密码
前端大杂烩
共10篇
前端
排序
发布
更新
浏览
点赞
评论
Vue 银行卡号 每4位补一个空格
vue 隔四个字符加一个空格 效果图 输入方式进行格式化 代码: <el-form-item label="测试" prop="test"> <el-input v-model="queryParams.test" placeholder="测试" clearable :maxlength="23" size="small" /> </el-form-item> watch监听 watch: { ['queryParams.test'](val) { this.$nextTick(() => { this.queryParams.test = val.replace(/\D/g,'').replace(/....(?!$)/g,'$& '); console.log('数字是多少:', this.queryParams.test,val) }); } }, 展示直接格式化 {{ item.name.replace(/(\d{4})(?=\d)/g, '$1 ') }}
韩昊杰
4年前
0
8
0
使用uniapp的时候使用`scroll-view`标签不出现滚动条
vue 隔四个字符加一个空格 效果图 输入方式进行格式化 代码: <el-form-item label="测试" prop="test"> <el-input v-model="queryParams.test" placeholder="测试" clearable :maxlength="23" size="small" /> </el-form-item> watch监听 watch: { ['queryParams.test'](val) { this.$nextTick(() => { this.queryParams.test = val.replace(/\D/g,'').replace(/....(?!$)/g,'$& '); console.log('数字是多少:', this.queryParams.test,val) }); } }, 展示直接格式化 {{ item.name.replace(/(\d{4})(?=\d)/g, '$1 ') }}
韩昊杰
3年前
1
3
0
微信小程序rpx,px,rem单位换算规则
vue 隔四个字符加一个空格 效果图 输入方式进行格式化 代码: <el-form-item label="测试" prop="test"> <el-input v-model="queryParams.test" placeholder="测试" clearable :maxlength="23" size="small" /> </el-form-item> watch监听 watch: { ['queryParams.test'](val) { this.$nextTick(() => { this.queryParams.test = val.replace(/\D/g,'').replace(/....(?!$)/g,'$& '); console.log('数字是多少:', this.queryParams.test,val) }); } }, 展示直接格式化 {{ item.name.replace(/(\d{4})(?=\d)/g, '$1 ') }}
韩昊杰
4年前
0
3
0
微信小程序及UNI-APP修改SWIPER轮播DOT指示点样式
vue 隔四个字符加一个空格 效果图 输入方式进行格式化 代码: <el-form-item label="测试" prop="test"> <el-input v-model="queryParams.test" placeholder="测试" clearable :maxlength="23" size="small" /> </el-form-item> watch监听 watch: { ['queryParams.test'](val) { this.$nextTick(() => { this.queryParams.test = val.replace(/\D/g,'').replace(/....(?!$)/g,'$& '); console.log('数字是多少:', this.queryParams.test,val) }); } }, 展示直接格式化 {{ item.name.replace(/(\d{4})(?=\d)/g, '$1 ') }}
韩昊杰
4年前
0
3
0
小程序处理TypeError: Cannot read property 'slice' of undefined" found in
vue 隔四个字符加一个空格 效果图 输入方式进行格式化 代码: <el-form-item label="测试" prop="test"> <el-input v-model="queryParams.test" placeholder="测试" clearable :maxlength="23" size="small" /> </el-form-item> watch监听 watch: { ['queryParams.test'](val) { this.$nextTick(() => { this.queryParams.test = val.replace(/\D/g,'').replace(/....(?!$)/g,'$& '); console.log('数字是多少:', this.queryParams.test,val) }); } }, 展示直接格式化 {{ item.name.replace(/(\d{4})(?=\d)/g, '$1 ') }}
韩昊杰
4年前
0
2
0
1
2
下一页
在手机上浏览此页面
退出登录
您好!
确认要退出当前登录吗?
取消
确认退出
我是韩昊杰
一个一直在用心写代码的程序员
必须认同
认同吧