After uploading a picture using the fileupload.js plug-in, click to delete the picture and cannot delete it.

1. The front desk uses fileUpload.js to upload files. After uploading, click on the trash can to delete the picture.
does not seem to be using jquery.fileupload.js,. Below is part of the content of fileupload.js
/ * *

.
  • Created by zxm on 2017

* /
$.fn.extend ({

)
"initUpload": function (opt) {

    if (typeof opt != "object") {
        alert("!");
        return;
    }
    var uploadId = $(this).attr("id");
    if (uploadId == null || uploadId == "") {
        alert("id!");
    }
    $.each(uploadTools.getInitOption(uploadId), function (key, value) {
        if (opt[key] == null) {
            opt[key] = value;
        }
    });
    uploadTools.initWithLayout(opt);//
    uploadTools.initWithDrag(opt);//
    uploadTools.initWithSelectFile(opt);//

    uploadTools.initWithUpload(opt);//
    uploadTools.initWithCleanFile(opt);
    uploadFileList.initFileList(opt);
}

});

Apr.19,2021

maybe you can understand the use of F12 first.


because there is no click event

Menu