1 Star 12 Fork 2

江夏尧 / Mock

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
index.html 1.09 KB
一键复制 编辑 原始数据 按行查看 历史
江夏尧 提交于 2022-10-18 12:19 . fixed: 重要修复
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body></body>
<script type="module">
import * as mock from './src/mock';
const template = {
temp: '@guid()',
uses_ids: 521520,
string_id: /[w][l][_][a-z][a-z][a-z][0-9][0-9]/,
create_time: '@date(YYYY-MM-DD)',
'sex|1': ['', ''],
_time: '@now()',
color: '@hex()',
upate_tiem: '@datetime()',
article: '@csentence(30)',
users_family: '@cfirst',
users_name: '@clast()',
names: '@cname()',
email: '@email(qq.com)',
ip_adress: '@ip()',
adress: '@county(true)',
postal_code: '@zip()',
id_sfz: '@id()',
increment: '@increment(1)',
};
console.log(mock.mock(template));
</script>
</html>
TypeScript
1
https://gitee.com/dongzhongzhidong/Mock.git
git@gitee.com:dongzhongzhidong/Mock.git
dongzhongzhidong
Mock
Mock
ts

搜索帮助