JavaScript Number Input not Allowing Decimal Point or Negative Sign

后端 未结 0 1877
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-19 05:28

I created a number input in JavaScript. However, it does not allow the first character to be either a decimal point or a negative sign. How would I allow this? Thanks.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题