c21cd30246b20e6248dc66eee7199ecb1954a1544ce860d1cf12f916c0f9f76f801fed1db66e76aa8a3930e52b5ae8a9c31cf2a57367b10d5255fdf2a86813 1.9 KB

12345678910111213141516171819202122232425262728293031
  1. # Mock.js
  2. <!-- 模拟请求 & 模拟数据 -->
  3. [![Build Status](https://travis-ci.org/nuysoft/Mock.svg?branch=refactoring)](https://travis-ci.org/nuysoft/Mock)
  4. <!-- [![Coverage Status](https://coveralls.io/repos/nuysoft/Mock/badge.png?branch=refactoring)](https://coveralls.io/r/nuysoft/Mock?branch=refactoring)
  5. [![NPM version](https://badge.fury.io/js/mockjs.svg)](http://badge.fury.io/js/mockjs)
  6. [![Bower version](https://badge.fury.io/bo/mockjs.svg)](http://badge.fury.io/bo/mockjs)
  7. [![Dependency Status](https://gemnasium.com/nuysoft/Mock.svg)](https://gemnasium.com/nuysoft/Mock)
  8. [![spm package](http://spmjs.io/badge/mockjs)](http://spmjs.io/package/mockjs) -->
  9. 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.
  10. The official site: <http://mockjs.com>
  11. ## Features
  12. * Generate simulated data according to the data template
  13. * Provide request/response mocking for ajax requests
  14. * ~~Generate simulated data according to HTML-based templates~~
  15. This library is loosely inspired by Elijah Manor's post [Mocking
  16. Introduction](http://www.elijahmanor.com/2013/04/angry-birds-of-javascript-green-bird.html), [mennovanslooten/mockJSON](https://github.com/mennovanslooten/mockJSON), [appendto/jquery-mockjax](https://github.com/appendto/jquery-mockjax) and [victorquinn/chancejs](https://github.com/victorquinn/chancejs/).
  17. ## Questions?
  18. If you have any questions, please feel free to ask through [New Issue](https://github.com/nuysoft/Mock/issues/new).
  19. ## Reporting an Issue
  20. 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?
  21. ## License
  22. Mock.js is available under the terms of the [MIT License](./LICENSE).