Tag:Regular symbol
-
Regexp determines whether a text box contains special symbols
preface Sometimes, we want to determine whether the character entered by the user in the text box contains a special symbol (* / # [email protected]), just like filling in the password box when the user registers. demo With regexp object, the above requirements can be realized elegantly //Even (text box content) function (even) { //Rule […]