【发布时间】:2014-02-10 16:06:02
【问题描述】:
我的部分代码:
$("input[name='image']", selector_id).each(function(index) {
var this_selector = $(this),
this_file = this_selector[0].files[0], // ERROR LINE
this_image;
if (this_file) {
this_image = new FormData();
this_image.append('image', this_file);
images.push(this_image);
}
});
我正在使用 jQuery 通过 AJAX 上传图像,在 IE
如何在 IE8-9 中进行这项工作?
编辑 - 让我重新表述我的问题:我知道其中一些东西在 IE
【问题讨论】:
-
看到这个:stackoverflow.com/questions/10852446/… - 建议“jquery.form”,因为旧浏览器不支持 FormData 并且没有类似的东西。在这种情况下,您必须使用 iframe。
-
FormData 在
中不受支持
标签: javascript jquery internet-explorer internet-explorer-8 polyfills