javascript-tutorial / javascript-tutorial/en.javascript.info
Include example HTML5 Drag and Drop API
还没有人认领这个 Issue。
- 主要语言
- HTML
- 星标
- 25.5k
- 派生
- 4k
- PR 合并指标
- 30 天内没有已合并 PR
描述
There is a chapter called [“Drag'n'Drop with mouse events”](https://javascript.info/mouse-drag-and-drop), and it makes a passing reference to the Drag and Drop API. There are plenty of cases where it’s appropriate to choose this approach.
However, I think there also needs to be a “Drag'n'Drop with the API” chapter.
I’ve been using the DND API on a learning project. Although I got over the strange hurdle of learning which events apply to draggable items and which events apply to drop zones, I’m at a point where I am really missing the awesome guidance I can find on most other topics in your excellent work.
For the purpose of inspiration in creating such a chapter (or for anyone else reading this), one tutorial I found helpful helpful is this video (which includes the basics of the DND API, and implements a list-sorting feature):
https://www.youtube.com/watch?v=jfYWwQrtzzY
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
阅读 https://javascript.info/mouse-drag-and-drop 上现有的“Drag'n'Drop with mouse events”章节,并查看所引用的教程视频,以评估其中对 HTML5 Drag and Drop API 的覆盖情况。完成标准是添加一个解释该 API 的新章节,其中包括 draggable-item 和 drop-zone 事件,并提供何时使用它的实践指导。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- html, javascript
- 领域
- documentation, web-dev
- Issue 类型
- 文档
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 25/100