draggable-mj

A Draggable Plugin for Common Development

Usage no npm install needed!

<script type="module">
  import draggableMj from 'https://cdn.skypack.dev/draggable-mj';
</script>

README

Draggable

Draggable,顾名思义,拖曳插件

Usage

const Drag = require('Drag');
const ndDiv = document.createElement('div');

/** 
 * new Drag(ele)
 * ele为要拖曳的DOM元素
 * @param {HTMLElement} ele
*/
new Drag(ndDiv)