如果我有2 $超时了一个又一个的功能,我可以肯定知道的是,$ TIMEOUT1的回调将$ timeout2的回调之前调用?
function tempFunction() {
$timeout(function() {
//timeout 1s callback code
});
//some other procesing
$timeout(function() {
//timeout 2s callback code
});
}
是否在timeout2s回调之前调用timeout1s回调函数?为什么或者为什么不?
谢谢@georgeawg。虽然有帮助,但这不能回答我的问题。 – neuDev33