目的: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);
});
}
}