将桌面拖放到浏览器HTML5 Javascript [英] Drag and drop desktop to browser HTML5 Javascript

查看:154
本文介绍了将桌面拖放到浏览器HTML5 Javascript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

寻找一些指导,仍然是一个代码学习者,并使用HTML5 DnD / File Api进行了一些斗争...玩了几个演示,尝试了解他们的工作原理,并且我有一个一个问题的一点。



大多数人似乎使用内联css / js方法我试图在单独的文件中使用它们,但似乎不能正确的。 / p>

有人可以为桌面使用带有拖放功能的HTML画布做一个非常快速的演示,这是一个简单的画布元素,从桌面放下?



使用chrome,所以无需担心跨浏览器支持。



非常感谢aldo。

解决方案

尝试这个 -



http://www.w3schools.com/html/html5_draganddrop.asp



https: //www.ibm.com/developerworks/mydeveloperworks/blogs/bobleah/entry/html5_an_example_of_drag_and_drop26?lang=en



http://blog.exadel.com/a-simple-html5-drag-and-drop-示例/



尝试使用谷歌搜索,有很多简单的例子在那里


Looking for some guidance, still a code learner and having a bit of a struggle using the HTML5 DnD/File Api... Played around with a few of the demos to try and understand how they work and I'm having a bit of an issue.

Most seem to use an inline css/js method I am trying to use them in separate files but can't seem to get it right.

Could someone do a very quick demo for me using an HTML canvas with a Drag in from the desktop, a simple canvas element with the drop in from desktop? Can't seem to get my head round it.

Using chrome so no need to worry about cross browser support.

Many thanks aldo.

解决方案

Try this -

http://www.w3schools.com/html/html5_draganddrop.asp

https://www.ibm.com/developerworks/mydeveloperworks/blogs/bobleah/entry/html5_an_example_of_drag_and_drop26?lang=en

http://blog.exadel.com/a-simple-html5-drag-and-drop-example/

Try googling it, there are lot of simple examples out there

这篇关于将桌面拖放到浏览器HTML5 Javascript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆