Skip to content
小飞侠
  • 首页
  • 小程序
  • uniapp
  • vue
  • APICloud
  • 其他
菜单

博客

  1. 首页>
  2. 其他>
  3. Element-ui input 限制只输入数字

Element-ui input 限制只输入数字

  • Post author:xfxia
  • Post published:2023年9月14日
  • Post category:其他


在这里插入图片描述

<el-input
 v-model.number='count'
 type='number'
 maxLength='9'
/>

在这里插入图片描述

<el-input
 v-model='count'
 oninput="value=value.replace(/[^\d]/g,'')"
 maxLength='9'
/>

在这里插入图片描述

<el-input
 v-model='number'
 oninput="if(isNaN(value)) { value = null } if(value.indexOf('.')>0){value=value.slice(0,value.indexOf('.')+3)}"
 maxLength='9'
/>

在这里插入图片描述

转载至:

https://www.muitlog.com/archives/459


你可能也喜欢

移动适配rem

ConcurrentHashMap多线程环境

librosa | 系统实战(一 ~ 四)

Go Int转string几种方式性能测试

三、引用其它的Makefile

开发移动端页面的页面尺寸适配

线程池,定时任务,线程调度池

操作系统实验(六):c实现设备的退出、分配、回收、显示功能

项目篇:SpringCloud项目

国家开放大学 《数据库应用技术》形考任务11数据库题

端口转发工具lcx的使用总结(lcx下载)

shell编程基本命令1

构造函数的实例成员与静态成员

iOS 上传的图片在HTML上显示时,图片方向信息(EXIF Orientation)异常

idea怎么设置成中文,汉化

二叉树广度遍历实现

【力扣刷题记录】27. 移除元素

you can disable this check with the configuration ‘classloader.check-leaked-classloader‘

聊聊文件IO

Windows Server 2008或2012 修复CVE-2016-2183(SSL/TLS)漏洞的办法

目录

  • APICloud (3)
  • golang (228)
  • java (8,236)
  • linux (4,002)
  • mysql (2,800)
  • php (1,070)
  • python (5,439)
  • solidity (25)
  • uniapp (235)
  • vue (2,463)
  • 其他 (88,233)
  • 小程序 (801)

文章归档

  • 2023年十二月 (1872)
  • 2023年十一月 (477)
  • 2023年十月 (17371)
  • 2023年九月 (44974)
  • 2023年八月 (26399)
  • 2023年七月 (14793)
  • 2023年六月 (1)
  • 2023年五月 (2186)
  • 2023年四月 (3838)
  • 2023年三月 (1544)
  • 2023年二月 (3)
  • 2023年一月 (4)
  • 2022年十二月 (3)
  • 2022年十一月 (36)
  • 2022年十月 (16)
  • 2022年九月 (8)
  • 2021年九月 (1)
  • 2020年九月 (6)
  • 2020年八月 (5)

标签

Aave (1) cosmos (6) defi (255) flag (27) gitee (1) github (1) golang (234) java (8234) linux命令 (82) List (1) map (1115) mysql (3093) npm (237) tendermint (6) uuid (43) vant (64) vmware (270) 区块链 (63) 合约 (37) 小程序版本更新 (3)
  • 首页
  • 小程序
  • uniapp
  • vue
  • APICloud
  • 其他
Copyright xfxia.com 鲁ICP备19024253号-2
关闭菜单