我已经下载了以下插件: http: //valums.com/ajax-upload/并且正在使用基本的 FileUploaderBasic 版本。问题是 onProgres 函数永远不会被调用。我需要为此调整我的服务器端代码吗?
var uploader = new qq.FileUploaderBasic({
button: uploadButton,
action: url,
debug: true,
onProgress: function(id, fileName, loaded, total){
var percentLoaded = (loaded / total) * 100;
$( "#progressbar" ).progressbar({
value: percentLoaded
});
},
onComplete: function (id, fileName, responseJSON) {
alert('done!');
}
});