摘要: $(".inputmoney").keyup(function () { var reg = $(this).val().match(/\d+\.?\d{0,2}/); var txt = ''; if (reg != null) { txt = reg[0]; } $(this).val(txt) 阅读全文
posted @ 2016-10-24 10:42 添天灯 阅读(3786) 评论(0) 推荐(0) 编辑