input的number类型

<input type = "number" > 限制只能输入数字
<input type = "number" oninput="if(value.length>11)value=value.slice(0,11)"> 限制输入的长度为11

原文地址:https://www.cnblogs.com/cn9826/p/13638504.html