Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

版本1.1.0使用正则 #507

Open
wyying opened this issue Jun 1, 2023 · 0 comments
Open

版本1.1.0使用正则 #507

wyying opened this issue Jun 1, 2023 · 0 comments

Comments

@wyying
Copy link

wyying commented Jun 1, 2023

在使用mockjs的时候,用了正则表达式的形式,一直报错误

{ data:{ 'list|10':[{ //生成10组数据 id:"@id",//得到随机的id值 organization:"@city", //所属单位 name:"@cname",//名称 contactPhone:/^1[34578]\d{9}$/, //联系方式 }] } }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant