是否可以从IE9 中的拖放事件中获取文件名位置?
我试过了:
$('#myDiv').addEventListener('drop', function (e) {
e.preventDefault();
if (e.dataTransfer.files === undefined) // <-- true
或者
$('#dropTarget').on('drop', function(e){
if(e.originalEvent.dataTransfer){
if(e.originalEvent.dataTransfer.files.length) // <-- files is undefined..
are there any other tricks that could be done to get that location on a drag/drop in IE9?