//trigger
fMain(fAfter1());
开发者_StackOverflow社区
function fMain(callback()){
//do stuff here and then...
callback();
}
function fAfter1(){
}
function fAfter2(){
}
It seems that the callback isn't waiting to be triggered like I hoped it would.
Thanks!
The definition should be function fMain(callback){, not function fMain(callback()){ -- I'm not sure if that's what's causing your problem.
加载中,请稍侯......
精彩评论