Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

complete方法如何传入额外参数? #624

Closed
maojindao55 opened this issue Apr 26, 2023 · 2 comments
Closed

complete方法如何传入额外参数? #624

maojindao55 opened this issue Apr 26, 2023 · 2 comments

Comments

@maojindao55
Copy link

const subscription = observable.subscribe(next, error, complete(extparams)) // 这个extparams如何传过去?

@enusune
Copy link

enusune commented May 5, 2023

const next = (res) => {
  //...
 }
const error = (error) => {
  //...
}
const complete = (res) => {
  //...
  //你的函数(extparams);
}

const subscription = observable.subscribe(next, error, complete);

@yinxulai
Copy link
Collaborator

yinxulai commented May 6, 2023

本问题与 js-sdk 无关。且已有合理回答,所以关闭

@yinxulai yinxulai closed this as completed May 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants