如何支持 IE
ifanday opened this issue · 6 comments
ifanday commented
mirrorx 里面用了数组 find 及 includes 等等方法导致 ie 报错
yurizhang commented
import一个polyfill
llh911001 commented
这种情况下,的确是需要自己引入 babel-runtime
的
ifanday commented
@llh911001 @yurizhang
import polyfill 之后
1 配置 .babelrc
2 mirrorx 依赖里面的 model 扩充 [].find
才能解决 ie10+
HuYuee commented
@icuke @yurizhang @llh911001 也就是说只能支持到ie10吗?
llh911001 commented
不是,如果你加了 polyfill,那么可以到 IE8
HuYuee commented
@llh911001 ok!多谢!