Learn js

First of all, javaScript is a language of weakly typed variables.
The methods of defining variables and functions are:
var variable name;

The function is static and then moves to determine the parameters. The
function function is as simple as possible
function function name ([parameter 1, parameter 2]) { statement; } Each function comes with a parameter object of arguments, which is similar to an array. The details are as follows arguments[0]//The first parameter arguments[1]//The second parameter arguments.length// Number of parameters





javaScript event
Click event: Click event
Mouseover event:
Mouseout event occurs when the mouse moves to the label :
Focus event occurs when the mouse leaves the label : Focus
Blur event: Loss of focus

Guess you like

Origin blog.csdn.net/weixin_43889562/article/details/88899929