+0
日增长
19,546
stars
2,624
forks
415
watchers
51
prs
457
issues
14
releases
README
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: 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 or 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.
Top issues
#299MockXMLHttpRequest在处理二进制流类型的response时的结果与源生方法不一致16 comments · 2018-06-13#443vue mock和服务器接口并存, 导致原生video无法正常播放m3u8格式视频.15 comments · 2021-03-09#508希望不要将 "commander" 的版本设定成 "*"10 comments · 2023-06-20#451打包的时候怎么连同mock一起打包部署到服务器?10 comments · 2021-06-07#132多个字段的value能否有对应关系9 comments · 2016-08-15#390angular里面使用mockjs出现‘取消订阅错误’8 comments · 2019-11-27#316一个页面中有多个Mock都有@increment,是共用一个变量的?8 comments · 2018-09-03#224项目使用了socket.io,socket被影响不能建立连接8 comments · 2017-09-06
Latest release
1.0.0 1.0.0 2016-01-0580