Skip to content

xumengzi/dragjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

dragjs

面向对象之封装拖拽对象

采用构造函数加原型的方法封装的拖拽对象,原生js,不依赖任何框架, https://xumengzi.github.io/dragjs/20170610/drag.html

如下图

使用方法如下:

1.new一个实例即可(支持id,类名),比如:

2.new Drag(document.getElementById('drag_1'));

3.new Drag('drag_2');

不支持IE8等低版本浏览器

About

面向对象之封装拖拽对象,不支持IE8以下

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published