input不能输入中文

<input type="text" oninput="this.value = this.value.replace(/[\u4e00-\u9fa5d]/g, '');">

猜你喜欢

转载自www.cnblogs.com/family-626-77/p/9002412.html
今日推荐