How to prevent float and negative input using Javascript?

前端 未结 0 2034
面向向阳花
面向向阳花 2021-01-12 19:17

I\'m using readlineSync.questionInt and I need to prompt a message if the user types float or negative number. I used a limit, but it isn\'t enough.

var readl         


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