📜  触发 dropzone.js 的外部按钮 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:53.380000             🧑  作者: Mango

代码示例1
//use the following command:
myDropzone.hiddenFileInput.click()

//to find dropzone instant there are several ways:
//1- by jquery: 
var myDropZone =  $('.dropzone').get(0).dropzone;
//or
var myDropZone = $("div#dropmehere").dropzone({...});  //if you are using id to find your element

//2- by Dropzone class itself: 
var myDropzone = Dropzone.forElement("div#dropmehere");