PHP;">
plupload上传
30) {
alert("您上传的图片太多了!");
uploader.destroy();
} else {
var li = '';
plupload.each(files,function(file) { //遍历文件
li += " ";
});
$("#ul_pics").prepend(li);
uploader.start();
}
},UploadProgress: function(up,file) { //上传中,显示进度条
var percent = file.percent;
$("#" + file.id).find('.bar').css({"width": percent + "%"});
$("#" + file.id).find(".percent").text(percent + "%");
},FileUploaded: function(up,file,info) { //文件上传成功的时候触发
var data = eval("(" + info.response + ")");//解析返回的json数据
$("#" + file.id).html("");//追加图片
},Error: function(up,err) { //上传出错的时候触发
alert(err.message);
}
}
});
uploader.init();
0%