Three ways to use JavaScript in HTML

Dirty face 2022-02-13 06:15:00 阅读数:868

ways use javascript html

1. Directly on the page script Write in Tags js Code

2. Introducing external js file

<html>
<head>
<script src=".js"></script>
</head>
<body>
</body>
</html>

3. Directly nested in HTML In the sentence

copyright:author[Dirty face],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/02/202202130614588445.html