親測有效。轉載:https://blog.csdn.net/momdiy/article/details/79978305
<input type='text' onkeyup="value=value.replace(/^(0+)|[^\d]+/g,'')">
親測有效。轉載:https://blog.csdn.net/momdiy/article/details/79978305
<input type='text' onkeyup="value=value.replace(/^(0+)|[^\d]+/g,'')">
代碼: public class PropertiesControl : Grid { [TypeConverter(typeof(LengthConverter))] public d