[英]dragover mouse event contain file info in XUL application using javascript
I'm writing a XUL application using JavaScript for the coding. 我正在使用JavaScript编写XUL应用程序进行编码。 I would like to be able to drag files onto a control in this application and, when dropped, have them show up.
我希望能够将文件拖到此应用程序的控件中,并在拖放时将其显示出来。
This seems like it would be almost exactly like the tutorial here , but when I break in the drag and drop event handlers in a debugger, the dataTransfer member of the event isn't there! 似乎几乎就像这里的教程一样,但是当我在调试器中中断拖放事件处理程序时,该事件的dataTransfer成员不存在!
How should I be doing this? 我应该怎么做?
Thanks, Nathan 谢谢,内森
These features were added in Firefox 3.1 , and XULRunner 1.9.1 , so make sure you are using the correct version. 这些功能已在Firefox 3.1和XULRunner 1.9.1中添加 ,因此请确保使用正确的版本。 Be aware these builds are still in beta.
请注意,这些版本仍处于测试阶段。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.