javascript React 在 Internet Explorer 中不起作用
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18627776/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
React not working in Internet Explorer
提问by Manish
While running Html file which uses React.js to display timer, its giving this error in Internet explorer
运行使用 React.js 显示计时器的 Html 文件时,在 Internet Explorer 中出现此错误
If you can see this, React is not working right. If you checked out the source from GitHub make sure to run grunt.
如果你能看到这一点,说明 React 工作不正常。如果您从 GitHub 上查看源代码,请确保运行 grunt。
I tried to search solution on google but i didnt got any.
我试图在谷歌上搜索解决方案,但我没有得到任何解决方案。
回答by mcsheffrey
It appears React.js only supports Internet Explorer 8 and above. Are you using an older version of IE?
React.js 似乎只支持 Internet Explorer 8 及更高版本。您使用的是旧版本的 IE 吗?
"At Facebook, we support older browsers, including IE8." http://facebook.github.io/react/docs/working-with-the-browser.html
“在 Facebook,我们支持旧版浏览器,包括 IE8。” http://facebook.github.io/react/docs/working-with-the-browser.html