设置队列中文件上的“X”号的点击事件+uploadLimit动态加1

目的:1.设置文件队列中“x”号的点击事件

        2.每次删除服务器文件后,把uploadLimit + 1:

'onUploadSuccess': function (file, data, response) {
         var result = eval('('+data+')');var cancel = $("#" + file.id + " .cancel a");//.cancel前面有一个空格不能省略
         if (cancel) {
             cancel.click(function(){
$(this).hide();//隐藏文件进度条
clear();//清空服务器上的指定文件
/ //uploadify+1
var swfuploadify = window['uploadify_file_upload'];
$("#file_upload").uploadify('settings', 'uploadLimit', swfuploadify.settings.uploadLimit + 1);
});
} }
要么生,要么死
原文地址:https://www.cnblogs.com/llljpf/p/6693114.html