How to pass variable inside javascript regex?

后端 未结 0 708
名媛妹妹
名媛妹妹 2020-12-25 14:31

In this way, I got every time invalid, basically, I have a need to pass the dynamic length of the number and check is it valid or not.

var len=8;
var pattern          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题