我想检查函数的执行完成然后下一行将执行 [英] I want to check the excution of function is completed then next line will execute
本文介绍了我想检查函数的执行完成然后下一行将执行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这里是逻辑代码
我想检查函数b的执行情况,如果完成则接下来将执行。我怎么能这样做
function a()
{
b() ;
document .forms [ 0 ]。action = another action + function = search + parmater = pagerefresh;
document .forms [ 0 ]。submit();
}
function b()
{
文件 .forms [ 0 ]。action = action + function = rejectall;
document .forms [ 0 ]。submit();
}
解决方案
尝试回调 [ ^ ]
here is the logic code
i want to check the execution of function b , if it is completed then next will line execute. how can i do this
function a()
{
b();
document.forms[0].action=another action + function=search + parmater=pagerefresh;
document.forms[0].submit();
}
function b()
{
document.forms[0].action=action+function=rejectall;
document.forms[0].submit();
}
解决方案
Try callback[^]
这篇关于我想检查函数的执行完成然后下一行将执行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文