Introductory knowledge of js
1. What is js? HTML writes the structure, css writes the style, and js writes the element behavior to interact with the user, making the page more intelligent and understanding me better
2.js is a client-side scripting language. It is written directly to the current HTML page for execution and does not require server environment support.
2. Like css, there are three ways to introduce js into In the current html document:
2-1: In the tag event attributes: onclick, onmouseover...
2-2: Write to '
2-3: Written in an external independent js file, use
3. Key points: Where should the js code written using the