<!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標(biāo)簽加上type="text/babel" 后瀏覽器無(wú)法正常請(qǐng)求到這個(gè)文件是咋回事啊,去掉type="text/babel"瀏覽器可以正常請(qǐng)求到hello.js文件,但無(wú)法解析語(yǔ)法,報(bào)語(yǔ)法錯(cuò)誤
React 寫 HelloWo(hù)rld 失敗了
村中長(zhǎng)相較好的男子
2018-03-05 10:53:52