1、dataTransfer
<script>
// 只在chrome支持,而且要看光标
var Dragstart = document.getElementsByClassName('a')[0];
Dragstart.ondragstart = function () {
e.dataTransfer.effectAllowed = "link";// 必须在ondragstart中使用
}//link copy move copyMove linkMove all
Dragstart.ondrop = function () {
e.dataTransfer.dropEffect = "link";// 需要和allowed对应
}
</script>