In previous development, data debugging was required either to write the current file code dead, or to create a new JSON file to obtain. Having stumbled upon the amazing website Easy Mock (perhaps a little later), it’s great to fake your data
First met
It’s even Easy to go to the Easy Mock website. I love it. Hello Easy Mock
Easy Mock’s self-introduction
Embark on a journey of discovery
Read the introduction, the following began to log in to use
Strong login
If you do not have an account before, you will directly register and log in
Your project only
Once logged in, you will be taken directly to your project page, which contains all of your projects
The interface list
Click on a project and you will see a list of all the interfaces under the current project
Interface details
Click the edit button on the right of the interface list to directly edit the simulated data and the description information of the interface on the right
Here is my example, after editing, click on the right to update and close the page
Interface to use
After making the above changes and edits, you can use the interface to get the data
Replication interface address
In the interface list, click the copy button on the right to directly copy the request address of the current interface
Js Ajax request interface data
Back in the JS code, data requests can be made directly using Ajax methods
Gorgeous results show
Open the browser debug window and the data you falsified has already appeared
This data can then be used for development and debugging as needed.
This is just an Easy Mock primer, but if you need anything else, you can go directly to the Easy Mock Documentation