日期:2014-05-16 浏览次数:20722 次
$("#uploadify").uploadify({ 'uploader' : '../../css/scripts/uploadify.swf', 'script' : '../../Uploadify', 'scriptData': {'TRAIN_PXSJ':$("#TRAIN_PXSJ").val(),'TRAIN_DD':$("#TRAIN_DD").val()}, 'method':'GET', 'cancelImg' : '../../images/cancel.png', 'cancelImg' : '../../images/cancel.png', 'folder' : 'jsp/personAuto/uploads', 'queueID' : 'fileQueue', 'auto' : false, 'multi' : true, 'simUploadLimit' : 10, 'sizeLimit': 19871202, 'queueSizeLimit' : 10, 'fileDesc': '支持格式:jpg/gif/jpeg/png/bmp.', 'fileExt': '*.jpg;*.gif;*.jpeg;*.png', 'buttonText' : '选择文件',//[color=#FF0000][b]此处中文乱码,如何解决[/b][/color] 'wmode' : 'transparent' , onComplete: function (event, queueID, fileObj, response, data) { var value = response ; alert("success back value"+value); alert("文件:" + fileObj.name + "上传成功"); }, onError: function(event, queueID, fileObj) { alert("文件:" + fileObj.name + "上传失败"); }, onCancel: function(event, queueID, fileObj){ alert("取消了" + fileObj.name); } }); });