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.

(У мене вже є менеджер скриптів, дайте мені встановити його!)

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
Створено
03.03.2023
Оновлено
03.03.2023
Size
3,8 кБ
Ліцензія
Н/Д

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