UNPKG

2.36 kBMarkdownView Raw
1# Mock.js
2<!-- 模拟请求 & 模拟数据 -->
3[![Build Status](https://api.travis-ci.org/nuysoft/Mock.png?branch=master)](http://travis-ci.org/nuysoft/Mock)
4[![GitHub version](https://badge.fury.io/gh/nuysoft%2FMock.png)](http://badge.fury.io/gh/nuysoft%2FMock)
5[![NPM version](https://badge.fury.io/js/mockjs.png)](http://badge.fury.io/js/mockjs)
6[![spm package](http://spmjs.io/badge/mockjs)](http://spmjs.io/package/mockjs)
7[![Dependency Status](https://gemnasium.com/nuysoft/Mock.png)](https://gemnasium.com/nuysoft/Mock)
8[![Bower version](https://badge.fury.io/bo/mockjs.png)](http://badge.fury.io/bo/mockjs)
9[![Views in the last 24 hours](https://sourcegraph.com/api/repos/github.com/nuysoft/Mock/counters/views-24h.png)](https://github.com/nuysoft/Mock/)
10<!-- [![Coverage Status](https://coveralls.io/repos/nuysoft/Mock/badge.png)](https://coveralls.io/r/nuysoft/Mock) -->
11
12Mock.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.
13
14The official site: <http://mockjs.com>
15
16## Features
17
18* Generate simulated data according to the data template
19* Provide request/response mocking for ajax requests with jQuery and KISSY
20* Generate simulated data according to HTML-based templates
21
22<!-- **TODO** This library is loosely inspired by Elijah Manor's [post](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/). -->
23
24## Questions?
25If you have any questions, please feel free to ask through [New Issue](https://github.com/nuysoft/Mock/issues/new).
26
27## Reporting an Issue
28Make 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?
29
30## License
31Mock.js is available under the terms of the [MIT License](./MIT-LICENSE.txt).
32
33
34
35[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/nuysoft/mock/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
36