Corresponding article links: blog.csdn.net/x550392236/…

Fastmock writes static data to the online interface. For basic operations, see the link above.

Next is used in the faskmock mock. Js random data mock. Js official link: mockjs.com/ fastmock official documentation: marvengong. Gitee. IO/fastmock / # /…

1. Write data in JSON format on the corresponding interface

2. This is the case with the corresponding data demo in mock.js



However, when a random data call to mock.js is made from the interface, the corresponding data is copied directly to the json of the interface, without writing the outer mock.mock ({}).

Random data that calls mock.js in JSON

Return data result:

Ps: If you need a large amount of data, you can choose the JSON data you need on the Internet and copy it to the interface to generate the online static data interface you need