直接附上代碼: document.body.ondrop = function (event) { event.preventDefault(); event.stopPropagation(); } 阻止