更新时间:2023-01-03 18:15:35
onComplete方法的第一个参数实际上是事件,所以你真的引用 fileName
与 responseJSON
。如果您更改方法参数以包含该事件,我认为应该可以正常工作。
The first parameter on the onComplete method is actually the event, so you're really referencing fileName
with responseJSON
. If you change your method parameters to include the event, I think that should work.
uploader.on "complete", (event, id, fileName, responseJSON)