dropzone js if else dz 成功或错误

dropzonejs if else dz succes or error

我对 dz 成功标记和 dz 错误标记有疑问。我找不到如何显示结果中的一个或另一个。我想做这样的事情:

if (success) {
    show dz-succes-mark
} else {
    show dz-error-mark
}

这里还有一个建议:

Dropzone.options.dropzone = {
init: function 1() {
this.on("success", function(file) {alert ("successful uploaded"); });   

}
init: function 2() {
this.on("error", function(file) {alert ("error!"); });  

}
}