Field2: Click the button below to copy the contents of Field1 to Field2:
1. The event is generally started at the beginning;
The previous Click is a method, and OnClick is an event.
2. Method is to call the statement directly, ie Display call;
3. Event does not need to be called, but must write a function by the programmer and assign the function to the corresponding event, and its call is in the corresponding event. Trigger. [Tell the browser what to do when you click] So the call order is: First, the second event is first.
An article can be extended:
1. $ (“”). Clickand
Onclick [ Difference example introductionAddress: https://www.jb51.net/Article/55650.htm
2. Learn jQuery (5) jQuery events and event objects from zero