<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<script src="../lib/react/react.development.js"></script>
<script src="../lib/react/react-dom.development.js"></script>
<script src="https://cdn.bootcss.com/babel-standalone/6.22.1/babel.min.js"></script>
</head>
<body>
<div id="hello"></div>
<script type="text/babel" src="hello.js"></script>
</body>
</html><script type="text/babel" src="hello.js"></script>给script标签加上type="text/babel" 后浏览器无法正常请求到这个文件是咋回事啊,去掉type="text/babel"浏览器可以正常请求到hello.js文件,但无法解析语法,报语法错误
添加回答
举报
0/150
提交
取消