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


你可能也喜欢

闪烁事故/火灾svg图

Tensorflow-GPU和sklearn的安装

spring boot2下rest风格映射问题解决及源码解析

kafka-eagle无法获取kafka cluster info

oracle segment 段的概念 段和表的区别和联系

ROS踩坑记录

error “invalid command name “tcl_findLibrary““

OSpider: Open Source Vector Geographic Data Crawler

PIPIOJ 1395: 图的遍历——深度优先搜索

在Windows中使用VirtualBox虚拟机安装Ubuntu系统

YOLO2 window7+cpu版本

oracle 11g v$sql,Oracle 11g实时SQL监控 v$sql_monitor

深度学习中的优化算法

ADS交叉耦合振荡器仿真

js 获取audio时长

ac自动机fail树上dfs序建可持久化线段树

matlab中ilaplace的作用,MATLAB中,你必须要知道的!

leetcode单调栈经典例题——最大矩形

求最大面积(虚函数和多态)

解决XXX is not defined on the instance but referenced during render. Make sure that this property …

目录

  • 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
关闭菜单