摘要: 限制输入监听input的input事件 1.只允许输入数字 this.inputValue = this.inputValue.replace(/[^\d]/g, "") 2.只允许输入数字和小数点 this.inputValue = this.inputValue.replace(/[^\d.]/ 阅读全文
posted @ 2022-05-13 13:45 双木之下藏倒影 阅读(7442) 评论(0) 推荐(0) 编辑