html输入框2位小数,js限制input输入框只能输入2位小数-CSDN博客

网站介绍:文章浏览阅读822次。$.fn.decimalinput = function() {$(this).css("ime-mode", "disabled");this.bind("keypress", function(e) {if (e.charCode === 0) return true; //非字符键 for fire..._input 限制输入两位小数 js