js代码
<script src="js/jquery.js"></script> <script src="js/upload.js"></script> <script type="text/javascript"> var dragImgUpload = new DragImgUpload("#drop_area",{ callback:function (files) { //回调函数,可以传递给后台等等 var file = files[0]; console.log(file.name); } }) </script>