A simulation data generator
JavaScript HTML
Latest commit c4d7cba Apr 7, 2016 @nuysoft fix #108
Permalink
Failed to load latest commit information.
bin fix bin/random; + 1.0.0-beta1 Dec 14, 2015
dist fix #108 Apr 7, 2016
src fix #108 Apr 7, 2016
test fix #108 Apr 7, 2016
.editorconfig amd, gulp, mocha Dec 23, 2014
.gitattributes amd, gulp, mocha Dec 23, 2014
.gitignore - ./site Dec 14, 2015
.jshintrc 改用 webpack 打包 Dec 14, 2015
.spmignore Add spm support May 28, 2014
.travis.yml amd, gulp, mocha Dec 23, 2014
CHANGELOG.md 改用 webpack 打包 Dec 14, 2015
LICENSE 改用 webpack 打包 Dec 14, 2015
README.md fix LICENSE link Dec 16, 2015
bower.json - plugins Dec 14, 2015
gulpfile.js 改用 webpack 打包 Dec 14, 2015
package.json + 1.0.1-beta3 Apr 7, 2016

README.md

Mock.js

Build Status

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.