We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
第124天 如何实现文件拖动上传?
The text was updated successfully, but these errors were encountered:
利用 HTML5 的 drag & drop API 来实现。需要注意的是,必须要设置 dragover 事件,不然不会触发 drop 事件。
drag & drop
dragover
drop
示例:https://codepen.io/Konata9/pen/BaBzExe?editors=1011
Sorry, something went wrong.
可以利用拖放事件,drag、dragover、dragenter、drop 来实现,再利用dataTransfer对象来实现数据交换。
No branches or pull requests
第124天 如何实现文件拖动上传?
The text was updated successfully, but these errors were encountered: