我使用的是dropzone.js,我的“完成后删除”代码如下所示:
Dropzone.options.myAwesomeDropzone = {
init: function () {
this.on("success", function (file) {
this.removeFile(file);
});
}
};它正常工作,但该部分立即被移除。我想要的是,花一秒钟时间,然后淡出,这样用户就可以看到图像在消失之前就完成了。如何向removeFile添加某种类型的转换?
发布于 2015-04-28 19:29:42
对于jQuery,应该是这样的.
Dropzone.options.myAwesomeDropzone = {
init: function () {
this.on("success", function (file) {
var _this = this;
$(file.previewElement).fadeOut({
complete: function() {
// If you want to keep track internally...
_this.removeFile(file);
}
});
});
}
};https://stackoverflow.com/questions/28257726
复制相似问题