禁止输入中文字符 <input type="text" οnkeyup="this.value=this.value.replace(/[u4e00-u9fa5]+/,'')"/> 中间是单引号,最外边是双引号。