Playing with Mockjs, the front end can run very smoothly

The function of mockjs is to generate random simulation data, intercept ajax requests, and add, delete, modify and query the data. When generating data, we need to be able to skillfully use mock JS syntax. The syntax specification of Mockjs includes two parts: data template definition specification and data placeholder definition specification ...

Posted by el_quijote on Sat, 11 Dec 2021 00:09:59 +0100

Deep understanding of Mock technology and basic use of Wire Mock framework

1, Key concepts spy: it monitors the calling process without forwarding capability. It mainly monitors the calling process (similar to packet capture and F12)stub: returns the implementation of a fixed value. It cannot be changed dynamically in the test (it means that it cannot be changed dynamically according to the real value). It is relativ ...

Posted by Craig_H on Thu, 09 Dec 2021 05:22:08 +0100