Summary of the front-end written test
1. How to add javascript to the webpage?
- Use the script tag to write the javascript code in between, for
example:
<scriptype="text/javascript"> document.write("Hello
World!");</script>
- Add external javascript file
- 行内js—javascript:return void(null)或javascript:return confirm("……");
Which of the following is not a form tag?
- SELECT
- TABLE (×) belongs to table
- INPUT
- CHECKBOX
A function in JavaScript is an object, and each function object inherits JavaScript's Function class (×) Arrow functions are not inherited