Is there a way of uploading an image using AJAX/jQ

2019-07-14 02:07发布

问题:

Also trying to avoid any use of plugins, (apart from jQuery of course, whether you would call that a plugin or not). I have a large system already and don't really want to load it with loads of plugins. Of course, if I need too I'll be looking for something very light weight.

回答1:

I dont think so. Even if some of the well known javaScript image upload plugin use iFrame under the hood.



回答2:

Try this, http://www.9lessons.info/2011/08/ajax-image-upload-without-refreshing.html