Skip to content
This repository has been archived by the owner on Mar 29, 2022. It is now read-only.

希望ChooseFile之后能提供类似.then的Promise调用 #34

Open
lwyj123 opened this issue Aug 17, 2017 · 0 comments
Open

希望ChooseFile之后能提供类似.then的Promise调用 #34

lwyj123 opened this issue Aug 17, 2017 · 0 comments

Comments

@lwyj123
Copy link

lwyj123 commented Aug 17, 2017

RT

uploader.chooseFile().then(res => {
  console.log(res);  //  {key: awqoidhwqoif} 返回上传后的Key
})

因为我自己写的时候想复用设置,不想每一个地方都写那么一长串去生成一个UploaderBuilder的对象,我是想写一个构造函数然后传入一些回调就行,然而这样Key就没法返回回来。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant