for循环里面存在异步的解决办法,先new一个Promise对象。如下图,then里面就是执行后的。
关于循环里面有异步的问题
原文:https://www.cnblogs.com/tyqblog/p/11946998.html