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.
我如何检测某人何时确实从文件资源管理器中选择了一些文件并点击了选择?我想在选择文件时添加一个事件。
我想到了。您必须将输入表单绑定到 onChange 方法。
<input type="file" data-dojo-attach-event="onChange:_onUpload" data-dojo-type="dojox/form.Uploader"/> _onUpload: function(evt){ }