关于元素拖拽的JQuery实现
关于元素拖拽的JQuery实现// $(fn)自定义方法(function ($) { $.extend($.fn, { // 拖拽滑动 drag: function () { const $this = $(this), $parent = $this.parent(); const moveLength = $parent.outerWidth() - $this.outerWidth(); // 父容器宽度-滑
原创
2020-07-24 16:37:58 ·
177 阅读 ·
0 评论