Methods to add js to html: 1. Embed JavaScript code directly in the page with the syntax "<script>js code</script>"; 2. Write js code into the ".js" file , use the "" statement to reference.
The operating environment of this tutorial: windows7 system, HTML5&&javascript version 1.8.5, Dell G3 computer.
There are two main ways to introduce JavaScript into HTML, both of which require the use of the