js的引用方式

时间:2020-07-30 14:43:01   收藏:0   阅读:80

1,内部引用

js可以在<head>

<script><script>

</head>中引用,

也可以在body中引用

<body>

<script><scipt>

</body>

2,外部引用

<!DOCUTYPE HTML>

<html>

<head>

<meta charest="utf-8">

<script typ="textjava/script" src="a.js"></script>

<title><title>

 

</head>

<body></body>

</html>

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!