- https://blog.csdn.net/qq_31126175/article/details/83382953
- https://blog.csdn.net/qq2523208472/article/details/84314134
-
// 没有形成进程阻塞,不会造成性能和负载问题。使用Promise处理异步function sleep(ms) {return new Promise(resolve =>{setTimeout(resolve, ms);});}sleep(0).then(()=>{// codethis.$refs.ChildDialog.refreshFormInfo(this.dataList[index]);})
转载于:https://www.cnblogs.com/trnanks/p/10993032.html