标签:style blog color div log text on server
<asp:TextBox ID="txtOnlyNum" runat="server" MaxLength="18" //最大长度 onkeyup="this.value=this.value.replace(/\D/g,‘‘)" // /\D/g为正则表达式,匹配所有非数字字符 onafterpaste="this.value=this.value.replace(/\D/g,‘‘)">
标签:style blog color div log text on server
原文地址:http://www.cnblogs.com/Vennet/p/3897644.html