我想弄清楚如何使用拖放,只需在元素上添加draggable =“true”
<a draggable="true" href="#" title="just a test">test</a>
但无法在父 div 上进行 drop,无法判断其调用是否错误。
最佳答案
你尝试过插入js来接受drop吗?这里
ondragover="allowDrop(event);"
函数allowDrop(x) { x.preventDefault(); }
关于javascript - 掉落时不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14568321/