开发者

html5 detect how many files being dropped?

Is it possible to detect how many files are being dropped using HTML5 drag/drop? I can detect the number of files using e.dataTransfer.files once the files have been dropped but the filesList is empty for ondragover &a开发者_运维知识库mp; ondragenter events.


You can try this :

e.dataTransfer.files.length

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜