Greasy Fork is available in English.

jQuery-Extensions-freeDragJS

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

Dieses Skript sollte nicht direkt installiert werden. Es handelt sich hier um eine Bibliothek für andere Skripte, welche über folgenden Befehl in den Metadaten eines Skriptes eingebunden wird // @require https://update.greasyfork.org/scripts/461097/1156609/jQuery-Extensions-freeDragJS.js

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

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.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

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!)

Autor
tutu辣么可爱
Version
1.0
Erstellt am
03.03.2023
Letzte Aktualisierung
03.03.2023
Größe
3,77 KB
Lizenz
n/a

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(依赖)