摘要: input type="text" onkeyup="this.value = this.value.match(/\d+(\.\d{0,2})?/) ? this.value.match(/\d+(\.\d{0,2})?/)[0] : ''" 正数,保留两位小数 onkeyup="this.val 阅读全文
posted @ 2022-04-29 14:20 石头记1 阅读(1125) 评论(0) 推荐(0)