是否IE10支持FORMDATA()? [英] Does IE10 support FormData()?

查看:275
本文介绍了是否IE10支持FORMDATA()?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我读过(这里)这IE10支持FORMDATA()。但是,当我键入此到IE10的JavaScript控制台:

I've read (here) that IE10 supports FormData(). But when I type this into the IE10 JavaScript console:

foo = new FormData();

我得到的错误,FORMDATA没有定义

I get the error, "FormData not defined"

是否IE10支持FORMDATA()或不是吗?有没有窍门能让它在IE10工作?

Does IE10 support FormData() or doesn't it? Is there a trick to getting it to work in IE10?

推荐答案

我可以证实它 - 本网页上运行的code。在控制台正常工作

I can confirm that it does - running your code in the console on this page works fine.

我会因此假设你在怪癖模式,因此,浏览器是pretending它不知道它是与上述模式。

I will therefore hypothesize that you are in Quirks Mode, and therefore the browser is pretending it doesn't know it to be compatible with said Mode.

请确保您的网页有一个有效的<!DOCTYPE HTML> 开始,且没有错误回落到怪癖模式

Make sure your page has a valid <!DOCTYPE html> at the start and no errors to fall back into quirks mode.

这篇关于是否IE10支持FORMDATA()?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆