Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以将任何文件从我的文件窗口拖放到某些字段中,例如我的 url 栏,并获取文件地址。有没有办法通过 jquery 或常规 html 属性在文本框或输入元素上发生这种情况?
您可以使用 HTML5 拖放:http ://html5demos.com/drag和http://www.html5rocks.com/en/tutorials/dnd/basics/