提交 b574107c 编写于 作者: Q qiang

fix: H5 DownloadTask 支持 offProgressUpdate

上级 2354e481
......@@ -18,6 +18,12 @@ class DownloadTask {
}
this._callbacks.push(callback)
}
offProgressUpdate (callback) {
const index = this._callbacks.indexOf(callback)
if (index >= 0) {
this._callbacks.splice(index, 1)
}
}
/**
* 停止任务
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册