360 B
360 B
在html中使用javascript
引入 <script>
使用script标签引入
script标签属性
- src
- async
- charset
- defer
- language(不推荐)
- type(不推荐)
如何在html中使用
<script>
// javvscript 代码
</script>
<script src="url"></script> <!-- 引入外部文本 -->
标签位置
- head
- body