Background data request in node.js mock, axios
<! -- Axios handles the cross domain background configuration 1. Install cnpm install -- save dev Axios
2.Introduce axios To project or component(Current component use only)
-->
// Using axios requests
Axios.get("/getuser")
.then(res => {
//succss
console.log(res.data.result);
})
.catch(error => {
//error
...
Posted by petrb on Sat, 04 Apr 2020 11:58:38 +0200
Using vuejs and mockjs simulation data to make shopping cart
Using vuejs and mockjs to simulate shopping cart
1. If you don't know mockjs, it's recommended to go to the official website to learn about it: Mockjs
2. The first step is to make the simulation data by yourself (of course, you can also use the MVC mode of nodejs to introduce mockjs to obtain the ...
Posted by roopurt18 on Sat, 26 Oct 2019 17:36:04 +0200