plupload上传控件错误exec(this.uid, component, action, args) --undefined is not a function 

plupload上传控件错误exec(this.uid, component, action, args)

原因:Flash元素隐藏后调用控件的销毁方法就会报错,所以要在Flash元素隐藏销毁上传控件 uploader.destroy();

 解决办法:

$('#loadlist').on('hidden.bs.modal', function (e) {
                uploader.destroy();
                $('#filelist').empty();
                $('.uploadProgress').hide();
                $('.uploadProgressPercent').css('width', '0%');
            });

 

改为

$('#loadlist').on('hide.bs.modal', function (e) {
                uploader.destroy();
                $('#filelist').empty();
                $('.uploadProgress').hide();
                $('.uploadProgressPercent').css('width', '0%');
            });
补充说明:hidden和hide的区别:hide是在隐藏窗口之前触发,hidden是隐藏窗口之后触发

参考资料:http://www.plupload.com/punbb/viewtopic.php?id=4010

相关文章:

  • 2022-12-23
  • 2021-06-06
  • 2022-12-23
  • 2021-05-26
  • 2021-12-18
  • 2022-01-10
  • 2021-07-12
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-16
  • 2022-12-23
  • 2022-12-23
  • 2021-09-05
相关资源
相似解决方案