禁止输入中文

obj.value=obj.value.replace(/[\u4E00-\u9FA5]|[\uFE30-\uFFA0]/g,''); 

 

posted @ 2020-09-16 10:17  Action_swt  阅读(138)  评论(0编辑  收藏  举报