如题, index.html
<!DOCTYPE html>
<html>
<head>
<title>demo</title>
</head>
<body>
<script src="https://cdn.bootcss.com/babel-core/5.8.23/browser.js"></script>
<script src="script.js" type="text/babel">
</script>
</body>
</html>
script.js
const add = (x=5,y=6) => console.log(x+y);
访问浏览器,使用开发者工具查看并未发现有转译,是哪里操作错误了吗 使用了 babel5 来进行内联式操作