Skip to content
This repository was archived by the owner on Jan 3, 2024. It is now read-only.

const { data: { code, data } } ie9下会有语法错误 ,请问怎么解决 谢谢; #9

Open
ruyangit opened this issue Jun 13, 2017 · 2 comments

Comments

@ruyangit
Copy link

const { data: { code, data } } 这是什么语法
ie9下会有语法错误 ,请问怎么解决 谢谢;

@lincenying
Copy link
Owner

对象解构, 需要用到下面的babel插件
babel-plugin-transform-object-rest-spread

要兼容ie9, 配置下
https://github.com/lincenying/mmf-blog-vue2/blob/master/.babelrc

@lincenying
Copy link
Owner

就现在这个配置, 在生产环境就是支持ie9的, 但是开发环境只支持chrome 52以上版本

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants