拖拽上传文件在火狐中会打开新窗口
作者:互联网
解决办法:
1 document.body.ondrop = function (event) { 2 event.preventDefault(); 3 event.stopPropagation(); 4 }
来源:https://cn.bing.com/search?q=%E5%8D%9A%E5%AE%A2%E5%9B%AD&PC=U316&FORM=CHROMN
标签:function,cn,E5%,拖拽,火狐,新窗口,stopPropagation,event 来源: https://www.cnblogs.com/lijianshen/p/13335054.html