可能重复: 您是否需要在<script>标签中指定text/javascript?
在HTML5中,<script>标签需要属性type="text/javascript"吗? 我的意思是,如果<script>标签将包含javascript,这是不是很明显?
<script>
type="text/javascript"
html5
html5 ×1