1. Look at this code, vuejs"s code, and execute the following code
in mountedmounted(){
console.log("axios send",new Date().getTime())
axios.get("http://localhost:3000/api?a=2")
var a=10000000000;
console.log("while exec",new Date().getTime())
while(a>0){
a--;
}
console.log("while finish",new Date().getTime())
},
I received the request at the breakpoint of the background server and found that the time to receive the request was when the while finish code was executed, that is, the request was sent after the execution of the while loop. Why did the while loop block the browser"s Ajax thread from sending the request? Shouldn"t these two not affect each other?