Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged input增加正则限制非法字符后不能连续输入汉字

0 votes
713 views
1 answer
    问题: 一个有意思的问题,今天在给受控输入框增加输入限制时,发现不能连续输入汉字了 代码如下: onChangeName = name => { if (/^[a-zA-Z0-9u4E00- ... {name} onChange={this.onChangeName}> 宝贝昵称 </InputItem> 去掉if判断,直接setstate,没有问题 ...
asked Jan 29, 2021 in Technique[技术] by 深蓝 (71.8m points)
To see more, click for the full list of questions or popular tags.
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...