中文逗号替换为英文逗号
<input type="text" name="txt" onkeyup="javascript:this.value=this.value.replace(/,/ig,',');"/ >
英文逗号替换为中文逗号
<input type="text" name="txt" onkeyup='javascript:this.value=this.value.replace(",",",");' />
JS 实现中英文逗号的替换
最新推荐文章于 2024-11-28 11:48:26 发布