案例源代码(好经典):
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style>
#div1{
width: 300px;
height: 300px;
padding: 10px;
border: 1px solid black;
}
</style>
<script>
function allowDrop(event){
event.preventDefault(