Possible Duplicate:
07000
在HTML5中,< script>标签需要属性type =“text / javascript”?
我的意思是不明显如果< script>标签会包含javascript?
解决方法
不,是
now officially useless。
The type attribute gives the language of the script or format of the
data. If the attribute is present,its value must be a valid MIME
type. The charset parameter must not be specified. The default,which
is used if the attribute is absent,is “text/javascript”.
只是做
<script src=yourpath.js></script>
(是,you can omit the quotes too)
请注意,您不必担心HTML5之前的浏览器,所有这些浏览器都会将JavaScript视为默认脚本语言。