Running an email regex test - .test() is not a function

后端 未结 1 522
野趣味
野趣味 2021-01-27 15:30

I\'m doing a regex check valid email function and I get a vague error that it\'s not a function.

These are the answers I referenced:

A simple jQuery form valid

相关标签:
1条回答
  • 2021-01-27 15:53

    The regex has to be like /yourRegex/.test(value) (without the quotes).

    0 讨论(0)
提交回复
热议问题