对于 html5 拖放,我如何获得项目在放置事件中放置位置的 x 和 y 位置?那时我需要动态创建和显示图像和弹出窗口...不使用 Canvas
最佳答案
function onDrop(ev) {
window.alert( ev.clientX + ',' + ev.clientY);
ev.stopPropagation();
return false;
}
关于html - 在 html5 drop 事件中获取 xy 坐标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5355903/