2021年12月14日

怎么优雅的取消重复请求ajax

摘要: class CancelablePromise { constructor() { this.pendingPromise = null this.reject = null } request(requestFn) { if (this.pendingPromise) { this.cancel( 阅读全文

posted @ 2021-12-14 14:44 冰love 阅读(147) 评论(0) 推荐(0) 编辑

导航