为什么 IE8 在使用 Facebook 的 React.js 时会出现脚本错误 [英] Why is IE8 getting a script error when using Facebook's React.js

查看:42
本文介绍了为什么 IE8 在使用 Facebook 的 React.js 时会出现脚本错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 facebook 的 react.不确定是什么导致了这个错误,接缝会自己做出反应吗?

I'm using facebook's react. Not sure whats causing this error, seams to be react itself?

我收到一个 IE8 脚本错误:对象不支持 react.js 的第 10898 行上的此属性或方法

I'm getting an IE8 script error: Object doesn't support this property or method on line 10898 for react.js

我没有使用缩小版,这是评论的开发版.还有其他人对 facebook 的 react 无法在 IE8 中工作有问题吗?想知道是否有某种设置必须用于响应才能在 IE 中工作???

I'm not using the minified version, this is the dev version that is commented. Anyone else having an issue with facebook's react not working in IE8? Wondering if there's some sort of setting that has to be used for react to work in IE???

推荐答案

确保添加本页末尾列出的 polyfill:Refs 和 DOM

Make sure to add the polyfills listed at the end of this page:Refs and the DOM

另请注意,JSXTransformer.js 目前与 IE8 不兼容,因此您需要预编译 JSX.

Note also that JSXTransformer.js is currently incompatible with IE8, so you do need to precompile your JSX.

这篇关于为什么 IE8 在使用 Facebook 的 React.js 时会出现脚本错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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