complete方法如何传入额外参数?
Closed this issue · 2 comments
maojindao55 commented
const subscription = observable.subscribe(next, error, complete(extparams)) // 这个extparams如何传过去?
enusune commented
const next = (res) => {
//...
}
const error = (error) => {
//...
}
const complete = (res) => {
//...
//你的函数(extparams);
}
const subscription = observable.subscribe(next, error, complete);yinxulai commented
本问题与 js-sdk 无关。且已有合理回答,所以关闭