兼容firefox的文本框只能输入两位小数的数字的代码_表单特效
来源:懂视网
责编:小采
时间:2020-11-27 20:46:19
兼容firefox的文本框只能输入两位小数的数字的代码_表单特效
兼容firefox的文本框只能输入两位小数的数字的代码_表单特效: function checkNumber(e,txt) { var key = window.event e.keyCode : e.which; var keychar = String.fromCharCode(key); var el = document.getElementById('test'); var msg = document.getElementById('msg'); reg = /\d|\./; var result = reg.test
导读兼容firefox的文本框只能输入两位小数的数字的代码_表单特效: function checkNumber(e,txt) { var key = window.event e.keyCode : e.which; var keychar = String.fromCharCode(key); var el = document.getElementById('test'); var msg = document.getElementById('msg'); reg = /\d|\./; var result = reg.test
兼容firefox的文本框只能输入两位小数的数字的代码_表单特效
兼容firefox的文本框只能输入两位小数的数字的代码_表单特效: function checkNumber(e,txt) { var key = window.event e.keyCode : e.which; var keychar = String.fromCharCode(key); var el = document.getElementById('test'); var msg = document.getElementById('msg'); reg = /\d|\./; var result = reg.test