怎么优雅的取消重复请求ajax
摘要:
class CancelablePromise { constructor() { this.pendingPromise = null this.reject = null } request(requestFn) { if (this.pendingPromise) { this.cancel( 阅读全文
posted @ 2021-12-14 14:44 冰love 阅读(149) 评论(0) 推荐(0) 编辑