详细问题描述
[内容]
es6经babel转换后在控制台上仍然显示有问题
重现步骤
[步骤]
<script src="js/browser.js"></script>
<script type="text/babel">
const arr = ['a', 'b', 'c', 'd'];
for (const element of arr) {
console.log(element);
}
</script>
[结果]
[Web浏览器] "Uncaught ReferenceError: Symbol is not defined"
[期望]
a
b
c
d
运行环境
[系统版本]
win10
[浏览器版本]
Hbuilder内置浏览器
[IDE版本]
8.0.2.201703061842
[mui版本]
无关系
附件
[代码片段]
<script src="js/browser.js"></script>
<script type="text/babel">
const arr = ['a', 'b', 'c', 'd'];
for (const element of arr) {
console.log(element);
}
</script>
[安装包]
联系方式
[QQ]
1923531930
[电话]
15639167751