【问题标题】:dropzonejs if else dz succes or errordropzone js if else dz 成功或错误
【发布时间】:2017-01-03 13:39:51
【问题描述】:

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

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

【问题讨论】:

    标签: javascript php dropzone.js


    【解决方案1】:

    这里有另一个建议:

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

    【讨论】:

    • 嗨 Bauer,我的问题是,当我有一个文件 ok 时,它同时显示 l 一个在另一个下方,并且 dzsucces 标记为 jsfiddle.net/0qoejLo2/2
    猜你喜欢
    • 2023-02-09
    • 2022-12-07
    • 1970-01-01
    • 2023-04-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多