简体   繁体   English

jQuery:按链接或图像打开文件上载窗口。

[英]jQuery: Open File Upload window by pressing a link or image.?

Is this possible to open a File Upload window when clicking on a image or link. 单击图像或链接时是否可以打开“文件上载”窗口。 (like what exactly in the <input type="file" name="upload" /> ). (就像<input type="file" name="upload" /> )。

Take a look at the jQuery ajax upload plugin . 看看jQuery ajax上传插件 It allows to upload files via "ajax" (technically not really, but the effect is the same) and doesn't use input buttons (technically it does, but they are invisible). 它允许通过“ajax”上传文件(技术上不是真的,但效果是一样的)并且不使用输入按钮(技术上它确实如此,但它们是不可见的)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM