阅读背景:

编写一个ng模式,不允许使用空格和特殊字符

来源:互联网 

I am trying to get an angular ng-pattern to check that a username has no whitespaces or special characters. The following form return false if you enter whitespaces or special characters. However, it becomes true as soon as you enter a-z, A-z or 0-9. I have tried ng-pattern="/[^\s]+/" and \S and [^ ] but they make no difference.I am trying to get an angular ng-pattern to che




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: