Regular expression

xiaoxiao2021-03-06  40

JavaScript 1.2 has a powerful regexp () object that can be used to perform a matching operation of regular expressions. The test () method can verify that there is a match mode in the target object and return TRUE or FALSE accordingly.

We can write the following script using JavaScript to verify the validity of the mail address entered by the user.

< Form onSubmit = "Return VerifyAddress (this);"> 转载请注明原文地址:https://www.9cbs.com/read-73335.html


New Post(0)