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

<script src=".js"></script>

3. Directly nested in HTML In the sentence

copyright:author[Dirty face],Please bring the original link to reprint, thank you.