使用dropzone上传文件后显示成功消息

display a success message after file upload using dropzone

本文关键字:显示 成功 消息 文件 dropzone 使用      更新时间:2024-04-22

使用成功事件,我想显示一个文本来通知用户上传完成!这是代码

 this.on("success", function (file, response) {
   console.log(response.message);
 document.getElementById("maDiv").innerHTML = "success !");
                           });

我只收到控制台消息,有什么建议吗?

您必须:

1.首先删除= "success !");  中分号前的括号

2.检查#maDiv拼写是否正确,js文件或内联脚本是否正确加载到html文件中。

您在要设置成功消息的行上有一个拼写错误。有一个)无法关闭任何内容。