Input框允许数字输入

<input type="number" class="att_orderNum" oninput="if(value.length>5)value=value.slice(0,5)" style="width:3em;text-align:center;" id="${p.id}" value="${p.ordernum}" data-category="${p.type }"/>

IE,谷歌,微软浏览器都可实用

猜你喜欢

转载自blog.csdn.net/luo_Json/article/details/84632244