console
function allowDrag(ev){
ev.preventDefault();
}
function Drag(ev){
ev.dataTransfer.setData("Text",ev.target.id);
}
function Drop(ev){
ev.preventDrfault();
var data=ev.dataTransfer.getData("Text");
ev.target.appendChild(document.getElementById(data));
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>test2</title>
</head>
<body>
<div id="div1" ondrop="Drop(event)" ondragover="allowDrag(event)">
<img src="D:\notes2019\201906\20190610102720.png" draggable="true" ondragstart="Drag(event)" id="drag1" width="336" height="69"/>
</div>
<div id="div2" ondrop="Drop(event)" ondragover="allowDrag(event)"></div>
</body>
</html>