Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有两个盒子,都可以用于拖放事件。我必须一次只突出一个框,需要发生 drop 功能
检测何时在document. 喜欢:
document
$(document).on("dragstart", ..);
然后在要突出显示的框中添加一个类:
$("#drop_box").addClass("highlight");
然后还记得再次删除课程"dragend"
"dragend"