</div>
<div class="entrylistItem">
<div class="entrylistPosttitle">
input的number类型
</div>
<div class="entrylistPostSummary">
摘要:<input type = "number" > 限制只能输入数字 <input type = "number" oninput="if(value.length>11)value=value.slice(0,11)"> 限制输入的长度为11
阅读全文
</div>
<div class="entrylistItemPostDesc">
</div>
</div>
<div class="postSeparator"></div>
<div class="entrylistItem">
<div class="entrylistPosttitle">
input表单加disable的后无法获取其value值
</div>
<div class="entrylistPostSummary">
摘要:表单设置disabled后无法传值到后台 解决方法: 将disabled = “disable” 替换为 readonly = "readonly" 再写一个隐藏的表单,一个用于显示,一个用于传值 提交时去掉disabled修饰 readonly和disabled 转载自 https://www.c
阅读全文
</div>
<div class="entrylistItemPostDesc">
</div>
</div>
<p>
</p>
标签:11,value,表单,disabled,readonly,HTML
From: https://www.cnblogs.com/dongzhidiboke/p/16725241.html