jQuery-Extensions-freeDragJS

jQuery-Extensions-freeDragJS是一个非常简单的jQuery 拖拽扩展,同时兼容移动设备与pc设备

بۇ قوليازمىنى بىۋاسىتە قاچىلاشقا بولمايدۇ. بۇ باشقا قوليازمىلارنىڭ ئىشلىتىشى ئۈچۈن تەمىنلەنگەن ئامبار بولۇپ، ئىشلىتىش ئۈچۈن مېتا كۆرسەتمىسىگە قىستۇرىدىغان كود: // @require https://update.greasyfork.org/scripts/461097/1156609/jQuery-Extensions-freeDragJS.js

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

ئاپتورى
tutu辣么可爱
نەشرى
1.0
قۇرۇلغان ۋاقتى
2023-03-03
يېڭىلانغان ۋاقتى
2023-03-03
Size
3.8 KB
ئىجازەتنامىسى
يوق

jQuery-Extensions-freeDragJS

  • jQuery-Extensions-freeDragJS是一个非常简单的jQuery 拖拽扩展,同时兼容移动设备与pc设备
  • 依赖:jQuery 3.4.1及以上,jQuery-Extensions-touchJS 1.7及以上

参数说明

$().freeDrag(container,params)

参数 参数类型 是否可缺省 其他说明
container 字符串或jQuery对象 可缺省
默认值为body
被拖拽节点的父节点
params JSON对象 可缺省
默认值为{}
设置事件触发时的方法,如开始start,移动move,结束end时触发的方法

$().aboutFreeDrag(query)

参数 参数类型 是否可缺省 其他说明
query 字符串 可缺省
默认值为null
获取freeDragJS相关信息。若为null则获取所有信息(JSON类型)
也可指定获取的信息:name(名称)、version(版本)、description(描述)、author(作者)、dependency(依赖)