https://blog.csdn.net/momdiy/article/details/79978305 (opens new window)

<input type='text' onkeyup="value=value.replace(/^(0+)|[^\d]+/g,'')">
1
lastUpdate: 5/13/2021, 5:35:14 PM