for example, when I transfer an api successfully, I have two callbacks. When the logic fails, there are also two callbacks. At this time, how to use promise to solve the callback?
for example, when I transfer an api successfully, I have two callbacks. When the logic fails, there are also two callbacks. At this time, how to use promise to solve the callback?
promise.catch(() => {
console.log('1')
})
promise.catch(() => {
console.log('2')
})
items written in src in create-react-app are placed in a test folder, which can be dragged directly into routes under src in dva build environment. I dragged it in. The original css file doesn t work. What s going on? ...
how can I click on the transfer page to display a load rotation icon, and then render the server to complete the display? ...