如何获得<inputtype=“number”>字段的原始值?
<input type="number">
input
number
:
<input id="edQuantity" type="number">
edQuantity.value = 4
type="number"
value
edQuantity.value = "" (String);
<input type="number">
value isEmpty Conclusion
============= ============= ================
"4" false valid number
"" true empty box; not a problem
"" false invalid text; color it red
注"four"
"4"
<input type="number">
胡说叔叔
慕盖茨4494581
相关分类