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