axios
.get(`https://randomuser.me/api/`)
.then((res) => {
console.log("第一次打API", res);
const { seed } = res.data.info;
console.log("seed", seed);
return axios.get(`https://randomuser.me/api/?seed=${seed}`);
})
.then((res) => {
const { seed } = res.data.info;
console.log("第二次打API", res);
return axios.get(`https://randomuser.me/api/?seed=${seed}`);
})
.then((res) => {
const { seed } = res.data.info;
console.log("第三次打API", res);
});
This Pen doesn't use any external CSS resources.