README
Draggable
Draggable,顾名思义,拖曳插件
Usage
const Drag = require('Drag');
const ndDiv = document.createElement('div');
/**
* new Drag(ele)
* ele为要拖曳的DOM元素
* @param {HTMLElement} ele
*/
new Drag(ndDiv)
A Draggable Plugin for Common Development
<script type="module">
import draggableMj from 'https://cdn.skypack.dev/draggable-mj';
</script>
Draggable,顾名思义,拖曳插件
const Drag = require('Drag');
const ndDiv = document.createElement('div');
/**
* new Drag(ele)
* ele为要拖曳的DOM元素
* @param {HTMLElement} ele
*/
new Drag(ndDiv)