I have structure like:
function1 ()
{
A;
function2(){};
B;
}
How can i force function2 return result then run B? it always A->B->function2
Appreciate any comments. Paxton.
Your question is answer, if the function is not async.
function a() {
console.log('a');
function b() {
console.log('b');
}
b();
}
a();
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.