且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

FineUploader responseJSON在onComplete回调中不包含成功

更新时间: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)