百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
M

Mock

> 编程语言
开源

模拟数据生成器

19.6K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

模拟数据生成器

Mock.js

Mock.js is a simulation data generator to help the front-end to develop and prototype separate from the back-end progress and reduce some monotony particularly while writing automated tests.

The official site: http://mockjs.com

Features

  • Generate simulated data according to the data template
  • Provide request/response mocking for ajax requests
  • Generate simulated data according to HTML-based templates

This library is loosely inspired by Elijah Manor's post Mocking Introduction, mennovanslooten/mockJSON, appendto/jquery-mockjax and victorquinn/chancejs.

Questions?

If you have any questions, please feel free to ask through New Issue.

Reporting an Issue

Make sure the problem you're addressing is reproducible. Use http://jsbin.com/ or http://jsfiddle.net/ to provide a test page. Indicate what browsers the issue can be reproduced in. What version of Mock.js is the issue reproducible in. Is it reproducible after updating to the latest version?

License

Mock.js is available under the terms of the MIT License.

Issues· 340 开放

查看全部 Issues在 GitHub 打开
  • #299

    MockXMLHttpRequest 在处理二进制流类型的响应时的结果与源生方法不一致

    更新于 2026年6月9日
  • #184

    ISO8601格式的支持

    更新于 2026年3月26日
  • #515

    该项目目前所有版本都存在高危漏洞,请不要再使用

    更新于 2026年1月29日
  • #504

    响应头 Content-Security-Policy "script-src 'self'" 导致无法使用 eval【BUG】

    更新于 2025年8月26日
  • #511

    在 react+vite 项目中下载 mockjs 和 vite-plugin-mock 提示 npm 包存在高级漏洞

    更新于 2025年7月22日
  • #244

    求助:mockjs 影响上传进度

    更新于 2025年7月17日
  • #510

    早在2019年,这个库就不再维护了,各位可以另寻出路。

    更新于 2025年4月27日
  • #509

    作者是否有支持ts 类型的计划?

    更新于 2025年4月25日
  • #514

    Mockjs.com 的示例页面无法加载。

    更新于 2025年3月12日
  • #513

    不同层次字段之间的依赖的规则怎么写

    更新于 2024年12月25日

> 标签

JavaScript

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言