1.问题
使用es6 语法在ie10出错
2.解决
<!-- 兼容ie浏览器转换es6 -->
<script src="https://cdn.bootcss.com/babel-polyfill/6.23.0/polyfill.min.js"></script>
<script src="//cdn.bootcss.com/babel-core/5.8.23/browser.min.js"></script>
<script type="text/babel">
//写入相关es6语法 但新的某些新的api和语法不支持,请查阅相关资料
</script>
参考:侵权请告知
https://www.cnblogs.com/gxsyj/p/9944831.html
https://kangax.github.io/compat-table/es6/
https://blog.csdn.net/weixin_42429672/article/details/91395841