Multiple objects and Methods bound to flag and jqon

Source: Internet
Author: User
The following small series will bring you a flag and jqon bound to multiple objects and methods (mandatory ). I think this is quite good. Now I will share it with you and give you a reference. Let's take a look at the differences (this)( and $(e.tar get) in jquery?

// There is a button in html:My buttonsScript $ ('# myBtn '). click (function (e) {console. log ($ (this); console.log(e.(e.tar get); console.log(((this)==((e.tar get);}); script

// Find dimensions (this(and attributes (e.tar get)
// The content printed on the console is exactly the same
// However, they are not equal

Because jq is used to construct two objects, you do not want to wait for the result even if the content of the two objects is the same during the last comparison. The comparison of objects is a pointer, the two pointers are different, so I don't want to wait. Simply put

Var a = new Object (); var B = new Object ();

= The two objects look exactly the same, but the comparison results still don't want to wait =

Compare this = e.tar get to get the correct result =

The above flag and jq on bind multiple objects and methods is all the content shared by the editor. I hope to give you a reference and support for PHP.

For more articles about how to bind multiple objects and methods to flag and jq on, refer to PHP!

Related Article

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.