jQuery-Extensions-freeDragJS

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

Ten skrypt nie powinien być instalowany bezpośrednio. Jest to biblioteka dla innych skyptów do włączenia dyrektywą meta // @require https://update.greasyfork.org/scripts/461097/1156609/jQuery-Extensions-freeDragJS.js

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

Autor
tutu辣么可爱
Wersja
1.0
Utworzono
03-03-2023
Zaktualizowano
03-03-2023
Rozmiar
3,77 KB
Licencja
Brak licencji

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