开发者

How can i wait that a method or function finish to run its code?

I need to find a solution for wait for a method 开发者_StackOverflow社区or function finish to run its code. How can i do this? Example : Method a, Method b. I have to run b when a is finished! Thanks.


a();
b(); // will run only after a() is finished

Or you run them asynchronously?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜