Using mockjs in Vue cli project (basic use and global configuration use)

reference resources: vue+mockjs simulation data to achieve the separation of front and back end development (Github-Demo All codes can be viewed), Mockjs ,Axios In many cases, the data required by the front-end and the back-end interface will not be developed synchronously in the development process of projects separated from the front-end an ...

Posted on Mon, 16 Dec 2019 13:58:18 -0500 by waq2062

mock.js simulates ajax data requests

Reprint: https://www.cnblogs.com/xieyong25/p/9596550.html In our development process, there is a situation that the front-end page ui is completed, but there is no interface for joint debugging data. Now we will introduce the use of mock.js to complete the data request. In this way, we only need to change the name of the reque ...

Posted on Wed, 20 Nov 2019 13:00:03 -0500 by gibbo1715

React Short Book - header Home Page

1. We introduced index.css in index.js, set the class name in the CSS file to a dom in App.js, and found that style worked, but we did not introduce it in app.js. Reason: Once a css file is introduced in a file, it is globally valid. So there's ...

Posted on Fri, 06 Sep 2019 22:27:15 -0400 by ricardo.leite