首页 > 代码库 > plupload上传控件错误exec(this.uid, component, action, args)

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

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

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

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