1.插件依赖jQuery,打开index.html即可使用
2.初始化id,提供回调函数,与后台交互
3.初始化
var dragImgUpload = new DragImgUpload("#_area",{
callback:function (files) {
//回调函数,可以传递给后台等等
var file = files[0];
console.log(file.name);
}
})