jquery Learning Note Events in-jquery

Source: Internet
Author: User

window.onlaod must wait for all content in the Web page (including pictures) to be loaded to execute, not to write multiple

$ (document). Ready () after all the DOM structures in the Web page have been drawn, it is possible that the DOM element associated with the object has not been loaded and can write multiple, abbreviated $ ()

<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01//en" "HTTP://WWW.W3.ORG/TR/HTML4/STRICT.DTD" >

<! doctype html public  "-//w3c//dtd html 4.01//en"   "http://www.w3.org/TR/html4/ Strict.dtd ">


Event bubbling

<! doctype html public  "-//w3c//dtd html 4.01//en"   "http://www.w3.org/TR/html4/ Strict.dtd ">


Event Object : The event object is created when the event is triggered. Using events in your program requires only adding a function to the function. This event object can only be accessed by an event handler function. Once the event handler has finished executing, the event object is destroyed.

Event.pagex Event.pagey Past to the x Y coordinate of the cursor relative to the page

<! doctype html public  "-//w3c//dtd html 4.01//en"   "http://www.w3.org/TR/html4/ Strict.dtd ">


removing events

<! doctype html public  "-//w3c//dtd html 4.01//en"   "http://www.w3.org/TR/html4/ Strict.dtd ">




This article is from "Avatar" blog, please make sure to keep this source http://shamrock.blog.51cto.com/2079212/1565173

jquery Learning Note Events in-jquery

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.