日期:2014-05-16 浏览次数:20422 次
var swf = new SWFUpload({ file_queued_handler: function() { var queue = this.customSettings.queue || new Array(); while (queue.length > 0) { this.cancelUpload(queue.pop(), false); } }, debug: false });
------解决方案--------------------
不好意思,写错了,应该是这样...
var swf = new SWFUpload({ file_queued_handler: function(file) { this.customSettings.queue = this.customSettings.queue || new Array(); while (this.customSettings.queue.length > 0) { this.cancelUpload(this.customSettings.queue.pop(), false); } this.customSettings.queue.push(file.id); }, debug: false });
------解决方案--------------------