首页 > 编程知识 正文

html二级菜单代码,html二级下拉菜单怎么做

时间:2023-05-03 18:40:50 阅读:55682 作者:3167

getsthetypeofdrag-and-dropoperationcurrentlyselectedorsetstheoperationtoanewtype.the value must be

诺诺

复制

linkor

移动。

或者,它必须获取当前选定元素的拖动类型,或其值必须为none、copy、link或move

providesallofthetypesofoperationsthatarepossible.must beone of

none,

复制、

复制链接,

复制移动、

链接、

链接移动,

move,

全或

已统一。

要提供所有可能的操作类型,必须

诺诺

复制

复制链接

复制移动

链接

链接移动

移动

全队

或者

统一化

.其中之一。

containsalistofallthelocalfilesavailableonthedatatransfer.ifthedragoperationdoesn ' tinvolvedragggingfiles,thispropertyisan

包含可获取的本地文件列表。 如果拖动操作不包含文件,则此文件列表为空。 这个属性很棒。 很多上传功能都是这样开发的

Gives a

atatransferitemlistobjectwhichisalistofallofthedragdata。

只读,指定一个

的对象。 包含所有拖动数据的列表。

An array of

stringgivingtheformatsthatweresetinthe

字符串数组,指定在只读dragstart事件中设置的一组格式。

方法

void数据传输. clear data ([格式];

removethedataassociatedwithagiventype.thetypeargumentisoptional.ifthetypeisemptyornotspecified, thedataassociatedwithalltypesisremoved.ifdataforthespecifiedtypedoesnotexist,orthedatatransfercontainsnodata,thismethodwwata

清除指定类别的数据。 名为type的参数是可选的。 如果类别为空或未知,则与所有类别相关的数据将被清除。 如果特定类别的数据不存在,或者数据传输不包含数据,则此方法没有任何效果。

domstring数据传输. get data (格式;

数据传输. get data (

Retrieves the data for a given type,oranemptystringifdataforthattypedoesnotexistorthedatatransfercontainsnodata。

检索指定类别的数据。 如果指定类别的数据不存在,或者数据传输不包含数据,则返回空字符串。

void数据传输. setdata (格式,数据);

数据传输. setdata (

setthedataforagiventype.ifdataforthetypedoesnotexist,it is添加at the end, suchthatthelastiteminthetypeslistwillbethenewformat.ifdataforthetypealreadyexists,thexistingdataisreplacedinthesamepositiotion

设定某个类别的数据。 如果此类别的数据不存在,则将其添加到末尾。 因此,此类别列表中的最后一个项目将是新格式,如果此类别已经存在,则存在的数据将被此新数据替换

void数据传输. setdragimage (img,xOffset,yOffset );

数据传输. setdragimage (

settheimagetobeusedfordraggingifacustomoneisdesired .设置拖动时显示的图像。 (默认值为拖动元素的缩略图) ) )。

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。