How to pass only the third parameter in js

for example, in writing vue, the callback function after the upload function of element-ui is successful will have three parameters

</el-button>
</el-upload>

Thank you very much!

Mar.17,2021

: on-success= "(.args) = > loadupSuccess (.args, 'fourth parameter?')"

there is a proposal to address your needs. You can find out that https://github.com/tc39/propo. does not know if babel has plug-in support. Before this implementation, it could also be done with rest params + spead param.


check first:

    Is there an alternative to the existence of
  1. this parameter?
  2. Whether
  3. can only be passed through callback, can it be passed by global variables, etc.?
Menu