当前位置:网站首页>Solve the El input input box For number number input problem, this method can also be used to replace the problem of removing the arrow after type= "number"
Solve the El input input box For number number input problem, this method can also be used to replace the problem of removing the arrow after type= "number"
2022-07-04 17:31:00 【It's La La】
List of articles
solve element Input box .number Digital input problem
Tips : Get rid of type="number" The following arrow problem can also be replaced by this method :
for example : Specify that only numbers can be entered in the input box , stay v-model After add .number You will only enter characters at the beginning , You can enter characters
Tips : The following is the main body of this article , The following cases can be used for reference
resolvent 1:onkeypress
Use regular to verify
onkeypress="return( /^\d$/.test(String.fromCharCode(event.keyCode) ) )"
resolvent 2:@input, Note that the binding value is consistent with that in the custom method
![ Insert picture description here ](https://img-blog.csdnimg.cn/8b0d9970dd0b47afa98aaf30f2f4cd5a.png
边栏推荐
- DataKit——真正的统一可观测性 Agent
- Capvision Rongying's prospectus in Hong Kong was "invalid": it was strictly questioned by the CSRC and required supplementary disclosure
- 【华为HCIA持续更新】SDN与FVC
- Leetcode list summary
- 居家打工年入800多万,一共五份全职工作,他还有时间打游戏
- 第十八届IET交直流輸電國際會議(ACDC2022)於線上成功舉辦
- How to implement a delay queue?
- La 18e Conférence internationale de l'IET sur le transport d'électricité en courant alternatif et en courant continu (acdc2022) s'est tenue avec succès en ligne.
- Learn more about the basic situation of 2022pmp examination
- Unity interview questions (continuously updated)
猜你喜欢
智捷云——元宇宙综合解决方案服务商
What is low code development?
新的职业已经出现,怎么能够停滞不前 ,人社部公布建筑新职业
7 RSA密码体制
CocosCreator事件派發使用
PingCode 性能测试之负载测试实践
Which domestic cloud management platform manufacturer is good in 2022? Why?
Solution du système de gestion de la chaîne d'approvisionnement du parc logistique intelligent
矿产行业商业供应链协同系统解决方案:构建数智化供应链平台,保障矿产资源安全供应
[unity ugui] scrollrect dynamically scales the grid size and automatically locates the middle grid
随机推荐
"Cannot initialize Photoshop because the temporary storage disk is full" graphic solution
Two methods of MD5 encryption
将Opencv绘制图片显示在MFC Picture Control控件上
[Huawei HCIA continuous update] SDN and FVC
R语言plotly可视化:plotly可视化互相重叠的直方图(historgram)、并在直方图的顶部边缘使用geom_rug函数添加边缘轴须图Marginal rug plots
整理混乱的头文件,我用include what you use
整理混乱的头文件,我用include what you use
C# 更加优质的操作MongoDB数据库
Zhijieyun - meta universe comprehensive solution service provider
CocosCreator事件派發使用
Go micro tutorial - Chapter 2 go micro V3 using gin and etcd
中银证券网上开户安全吗?
斑马识别成狗,AI犯错的原因被斯坦福找到了丨开源
Linear time sequencing
Vb无法访问数据库stocks
PingCode 性能测试之负载测试实践
PyTorch深度学习快速入门教程
VSCode修改缩进不成功,一保存就缩进四个空格
Yanwen logistics plans to be listed on Shenzhen Stock Exchange: it is mainly engaged in international express business, and its gross profit margin is far lower than the industry level
[acwing] 58 weeks 4490 dyeing