176

Promise 异步流程控制

 6 years ago
source link: https://juejin.im/post/59cdb6526fb9a00a4e67c7fb
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
前言 最近部门在招前端,作为部门唯一的前端,面试了不少应聘的同学,面试中有一个涉及 Promise 的一个问题是: 网页中预加载20张图片资源,分步加载,一次加载10张,两次完成,怎么控制图片请求的并发,怎样感知当前异步请求是否已完成? 然而能全部答上

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK