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!