助力软件开发企业降本增效 PHP / java源码系统,只需一次付费,代码终身使用! 广告
[![Uploadify - JQuery File Upload Plugin Script](https://box.kancloud.cn/2015-11-02_5636cc82d8b6c.png)](http://www.uploadify.com) # onClearQueue Input Type:**function** Input Format:**function(event) {}** Required:**optional** The **onClearQueue** option allows you to run a custom function when the queue is cleared via the **.uploadifyClearQueue()** method. The default function removes all items from the queue. If the custom function returns **false**, the default function will not run. ### Arguments **event **The event object. ### Demo Javascript Code 1. $('#file_upload').uploadify({ 1.   'uploader'     : '/uploadify/uploadify.swf', 1.   'script'       : '/uploadify/uploadify.php', 1.   'cancelImg'    : '/uploadify/cancel.png', 1.   'folder'       : '/uploads', 1.   'multi'        : true, 1.   'onClearQueue' : function(event){ 1.       alert('The queue has been cleared.'); 1.     } 1. }); HTML Code 1. <inputtype="file"id="file_upload"name="file_upload"/> 1. <ahref="javascript:$('#file_upload').uploadifyUpload();">Upload Files</a> | <ahref="javascript:$('#file_upload').uploadifyClearQueue();">Clear File Queue</a> [Upload Files](#) | [Clear File Queue](#) [![Download the Latest Version](https://box.kancloud.cn/2015-11-02_5636cc82ea7d9.png)](#) Help keep Uploadify free and support the development of other excellent apps! ![](../image/564003e12c812.gif) [home](#)  |  [about](#)  |  [download](#)  |  [demos](#)  |  [documentation](#)  |  [faqs](#)  |  [forums](#) ©2011 by [Reactive Apps](http://www.reactiveapps.com)