https://www.cnblogs.com/ZhaoWeiNotes/p/13640127.html
<input type="text" placeholder="" onafterpaste="this.value=this.value.replace(/,/g,',')" onkeyup="this.value=this.value.replace(/,/g,',')">
https://www.cnblogs.com/ZhaoWeiNotes/p/13640127.html
<input type="text" placeholder="" onafterpaste="this.value=this.value.replace(/,/g,',')" onkeyup="this.value=this.value.replace(/,/g,',')">
本文标题:js实现input框中输入的中文逗号自动转换为英文逗号
本文链接:https://www.haomeiwen.com/subject/redcrltx.html
网友评论