嗨,我正在使用上传文件插件,我需要在上传文件之前验证添加的文件数量......像这样
$('#fileupload').bind('fileuploadadd', function (e, data) {
filestoupload++;
var numOfDivs = $('.request').size();
if (numOfDivs < filestoupload) {
upload = false; // Is just an example.
}
});