会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
风雨飘飘飘啊飘
博客园
首页
新随笔
联系
管理
订阅
2017年8月25日
input的类型为number,限制输入的数字位数
摘要: 当input的type为text的时候,使用maxlength可以有效限制输入长度。 <input type="text" maxlength="5" /> 但是当type为number的时候,设置maxlength限制输入长度就会失效,长度可以无限输入。 <input type="number"
阅读全文
posted @ 2017-08-25 10:59 风雨飘飘飘啊飘
阅读(4066)
评论(1)
推荐(0)
编辑
公告