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

博客

  1. 首页>
  2. 其他>
  3. input type=”number” 禁止输入E

input type=”number” 禁止输入E

  • Post author:xfxia
  • Post published:2023年8月25日
  • Post category:其他


$(‘input[type=number]’).keypress(function(e) {


if (!String.fromCharCode(e.keyCode).match(/[0-9\.]/)) {


return false;

}

});

fromCharCode()是String的一个方法,可接受一个指定的Unicode值,返回一个字符串

使用方法:String.formCharCode()

转载于:https://www.cnblogs.com/senyu/p/7125565.html


你可能也喜欢

引入jquery不起作用 原因

Leetcode刷题230. 二叉搜索树中第K小的元素

【12-商品子模块整合MyBatisPlus技术&其它模块通过generator的自动生成与补充完善】

[ssm]ssm中的几种前后端传值方式(ajax,url,form)

分类器的sklearn交叉验证之我的理解

IDEA报错:Caused by: org.springframework.expression.spel.SpelEvaluationException: EL1008E: Property or

虚拟网络overlay、underlay

14-ROS参数的学习与使用

Flask 学习-69.捕获异常钩子函数errorhandler

buuctf-misc部分wp(更新一下)

new Date().getTime()和System.currentTimeMillis()获取时间戳

无线WIFI I/O控制器技术分享

element ui dialog样式

Async/Await 如何通过同步的方式实现异步?

el-image大图预览,el-image单张预览,el-image当前预览,el-image base64单张预览,el-image base64 预览当前

Git最佳实践-Git flow

Android编译系统过程研究

C++进阶:Boost的使用

使用IDEA的StreamTrace功能调试Stream

uva10763

目录

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